WordPress.org

Ready to get started?Download WordPress

Forums

CMS Press
Most Popular Custom Post Types (2 posts)

  1. JGold1993
    Member
    Posted 3 years ago #

    Hey,

    so bacically I have a script for most popular posts on my blog, but I want to create a mini loop on the sidebar of a custom post type index listing the most popular 'photoshop tutorials' for example.

    http://droddle.com/photoshop-tutorials

    I created a custom index and single page for each post type, but now I want to create my dynamic sidebar.

    Here is my most popular script:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    But how would I be able to filter it for a custom post type?

    Please and thank you :D

  2. JGold1993
    Member
    Posted 3 years ago #

    Also, if you wouldn't mind helping me with this as well, it's really bugging me.

    I am trying to make a dynamic menu so that it highlights what page your on. Since I am using CMS Press, it won't understand that even when i'm not on my home page, it still highlights the blog link. Here's my code.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I only want to highlight if it's the custom post type 'portfolio'. The other's, I know how to do with the is_page tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags