• 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.

    https://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 ??

Viewing 1 replies (of 1 total)
  • Thread Starter JGold1993

    (@jgold1993)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Most Popular Custom Post Types’ is closed to new replies.