user-pic

Popular Posts

Vote 0 Votes

I was wondering if anyone would be willing to share ideas of how to showcase the most popular entries on a website using MT. Most popular posts would be based on views or maybe comments.

I was also wondering how you all handle creating sticky posts, besides just changing the date or creating the entry in a different category.

thanks!

2 Replies

| Add a Reply
  • I handle sticky posts using "private tags." Private tags are any tag that is prefixed with an at sign ("@"). These tags can be used to filter and select, but are never displayed publicly.

    Therefore to make a post "sticky" I assign the tag "@sticky" to the post. Then I have an mt:Entries tag block at the top of my blog like so:

    <mt:Entries tags="@sticky" lastn="1">
    </mt:Entries>
    <mt:Entries lastn="10" unique="1">
    </mt:Entries>
    

    These two blocks should output the last sticky post at the top and ensure it is not replicated down below.

    The best way for popular posts right now is in the Community Solution - which we should have personal pricing for in the not too distant future - knock on wood.

  • Thanks for sharing this piece of code with me! It will be very useful. This should be added to a tips and tricks section or something.

Add a Reply

Forum Groups