Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] WordPress Conditional Statement – Mini Loop Help! Re: [Solved] WordPress Conditional Statement – Mini Loop Help!

#69179
cjk
Member

Hey Ashton,

Quote:
Is the header, footer and sidebar showing up?

Yep, the page loads as if nothing has changed. I made sure to disable cache when testing this…

Quote:
What is the name of that file? (index.php?)

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.

Quote:
What page are you going to get this page to display?

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?