Wordpress PHP question

by 6 replies
7
I am trying to get certain categorized posts to show up on one of my navigation pages. An example of that would be, for any posts that are categorized as "Tips" would show up on a page from my navigation. I want it to run the loop on a certain page but just postings that are categorized as "Tips". Any help would be appreciated


I am using Wordpress 2.9.2
#programming #php #question #wordpress
  • Try this simple piece of code:

    query_posts('category_name=Tips');

    Additionally, you can add other parameters to further customize your query.
  • Is there anything before or after that piece of code that needs to be added besides the <?php at the beginning and ?> at the end? I must not be doing something right because it isn't working.
    • [1] reply
    • Hi,

      Would like to help but the information here is sparse. Can you post the actual code you are trying to execute, and any error information that you get back, either in the browser or (if you have access) in the webserver's error log? I'll try to help out.

      best,
      Jim
      • [1] reply
  • I actually figured it out. I used the Category Page 2.5 plug in. It works fine now. Thank you to everyone who responded.

Next Topics on Trending Feed

  • 7

    I am trying to get certain categorized posts to show up on one of my navigation pages. An example of that would be, for any posts that are categorized as "Tips" would show up on a page from my navigation. I want it to run the loop on a certain page but just postings that are categorized as "Tips". Any help would be appreciated