Home › Forums › Back End › [Solved] WordPress Conditional Statement – Mini Loop Help! › Re: [Solved] WordPress Conditional Statement – Mini Loop Help!
Hey Ashton,
Yep, the page loads as if nothing has changed. I made sure to disable cache when testing this…
It is my page.php
Notes:
I have a number of *static* pages plus several hundred posts across 6 categories. I am trying to show the 3 most recent posts from a specific category at the bottom (after the loop) of each of these pages, a different category will be used for some pages. Some pages will show the same loop (once I get this issue figured out I will add (array) into the conditional statement to handle that.
See notes above, I think the easiest way to describe what I am trying to do is:
Below the main content of the displayed *static* page…
If on page "about" grab the 3 latest posts from category "News" and display them as excerpts, else if on page "whatever" get the 3 latest from category "B" and display as excerpts, else if on page "somesuch" get the 3 latest from category C and display as excerpts, any other page, do nothing.
I don’t want this in a sidebar… I would like it to display in the same div / column as the content of the static page…
Make sense?