• Hi, I am wondering what I do to be able to get my site to have one section on the side where I can have little things underneath the sections. Basically, links to my themes. Example:

    Themes
    Blue Theme
    Green Theme
    Red Theme
    Yellow Theme
    etc etc

    Basically each of the themes lead to a single post describing the theme. I am not sure if that all makes sense, but any help would be greatly appreciated and I could use it ASAP. Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m using a plugin to do this:
    https://watershedstudio.com/portfolio/software-development/wordpress-category-posts-plugin/

    And your code should look like this:

    <!-- SINGLE CATEGORY ARCHIVES -->
    <?php if (function_exists('wp_cat_posts')) { ?>
    <li id="categories"><h3>My Themes</h3>
       <ul>
          <?php wp_cat_posts(8); ?>
       </ul>
    </li>
    <?php } ?>

    wp_cat_posts(8); <– where 8 is the category ID for your theme. (So if your category ID is 3, you’d put wp_cat_posts(3) instead of 8. Make sense?

    You can see an example of it here:
    https://www.znzx.com — Tech Articles

    Thread Starter scottmb4

    (@scottmb4)

    Wow… Thanks for your quick reply. Do you have AIM, I think I am going to need some help setting this up. ??

    Sounds confusing.

    Thread Starter scottmb4

    (@scottmb4)

    Wow… Thanks for your quick reply. Do you have AIM, I think I am going to need some help setting this up. ??

    Sounds confusing.

    No, it’s not really. You just download the plugin, unzip it, then upload it to your plugins directory and activate it. Just like any plugin.

    Have you set up your theme category yet? Do that, and make note of the category ID number because you’ll need that for the code above.

    Then just cut and paste the code I posted into your sidebar, making sure your Category ID code is correct, and you’re good to go!

    I’m at work now (shhhh!!), but I’m home in half an hour. Send me an email (check my profile) and I can give you IM details then.

    Thread Starter scottmb4

    (@scottmb4)

    Okay sounds good! I will see if I can get it figured out in the mean time.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add Single posts to a section in sidebar’ is closed to new replies.