Prevent Posts Under A Certain Category From Displaying On Sidebar
-
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
> MembersRecent Posts
> Test
> So and such
> Blah blah blahGeneral 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?
- The topic ‘Prevent Posts Under A Certain Category From Displaying On Sidebar’ is closed to new replies.