Grow your CSS skills. Land your dream job.

WordPress get pages from nav

  • # April 5, 2013 at 10:29 pm

    Does anyone know a way to only query the database and return pages that have a navigation link? Right now, My query returns all pages and posts. I want to make is so that if there is no link for the page or post, then it won’t get that page. Do you know how this can be done?

    # April 5, 2013 at 11:11 pm

    I am getting close. I got an array of numbers that in a foreach loop returns

    320154125134195

    Now I need to turn that array of numbers into this

    320, 154, 125. 134, 195

    Can you help?

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".