Wordpress PHP question

by tx138
6 replies
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
#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.
    {{ DiscussionBoard.errors[2133960].message }}
  • Profile picture of the author tx138
    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.
    {{ DiscussionBoard.errors[2134005].message }}
    • Profile picture of the author jwiggs
      Originally Posted by tx138 View Post

      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.
      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
      {{ DiscussionBoard.errors[2141666].message }}
      • Profile picture of the author Sarah Harris
        This plugin may help..you can make a Tips page and display all the posts tagged with "tips" Different Posts Per Page
        Signature

        I love what I do and make money every day. It is as easy as 123. If you are interested in finally making money online, and you want to work with an amazing mastermind group that will be with you every step of the way showing you how let me know...

        Advertising your business doesn't have to take you all day... http://myadposted.com simple amazing customer support and personalized service.

        {{ DiscussionBoard.errors[2141809].message }}
        • Profile picture of the author tx138
          I am not sure the code that I am suppose to use so I can't post it, I tried to code that was suggested by socialmediawarrior but I seem to be doing something wrong. I will use the sixrevisions website as an example, just add .com to the end of their name(I can't post the url because my post count is too low, sorry). They have their home page set to show the most recent blog posts. But their tutorials section shows all of their post's that are categorized as tutorials. There is no error's that are showing up on the page, the page just stays blank where the post's are suppose to be.
          {{ DiscussionBoard.errors[2142568].message }}
  • Profile picture of the author tx138
    I actually figured it out. I used the Category Page 2.5 plug in. It works fine now. Thank you to everyone who responded.
    {{ DiscussionBoard.errors[2142643].message }}

Trending Topics