Grow your CSS skills. Land your dream job.

Tough WordPress issue

  • # October 8, 2012 at 9:37 pm

    I am trying to get a custom loop working to return content. Having a bit of trouble figuring this one out. Through some help, I have gotten most of it. Here is what I am doing.

    I have a menu page. This menu page has a parent category of menu. So every post that is made for the menu the user will select menu as the post parent. using a plugin for images, this allows me to have categories on the menu page with images. For example, Breakfast, Lunch, Dinner. Above each of the three categories just listed, there is an image representing each category. Underneath the category is the category title and under the category title are all the posts titles made to that particular category set with the menu as the category parent. What I need to do is limit the amount of child categories shown on the menu page to 3. Right now, it shows 4. I am trying to paginate the menu page so that it will only show 3 but can’t figure it out. Here is my query that returns the image below. I am thinking I need a for loop instead of a foreach loop but not sure how to write it

    http://pastebin.com/acAWMLmb
    The wine list needs to go away and there needs to be pagination under the remaining three menu categories so that you can view the wine list on the next page.

    # October 8, 2012 at 9:49 pm

    get categories had a way to limit posts. I passed an array of options to it and it worked.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".