• Resolved davezan

    (@davezan)


    Hi guys,

    My goal right now is to prevent posts of a category from showing up as a recent post on the sidebar. Here’s how it somewhat appears on my blog DaveZan.com:

    [Sidebar]

    Categories
    > General
    > Members

    Recent Posts
    > Test
    > So and such
    > Blah blah blah

    General is the “default” while “Members” is category ID #4. The most recent post title, “Test”, belongs to the Members category.

    I found this thread, https://www.ads-software.com/support/topic/36763, and tried the codes in my theme’s index page. I’m sure (at least I think I am) I placed it inbetween the 2 lines as described.

    However, I get this error message when I try to access my blog:

    “Parse error: syntax error, unexpected ‘<‘ in /home/davezan/public_html/davezan/wp-content/themes/beach-house-121/index.php on line 33”

    I was hoping to input a line or lines of code to create the desired effect: to prevent posts from the Members category from showing up under Recent Posts. I took out the code to restore my blog.

    Suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Prevent Posts Under A Certain Category From Displaying On Sidebar’ is closed to new replies.