Forums

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

Home Forums Back End Analogue Magazine style tabel of contents in WordPress

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30277
    shackep
    Member

    Hi All,
    I am working on creating a table of contents for a paper magazine that is transitioning to web. What I want to do is use a page ‘custom field’ to modify the query_posts arg to focus on a single magazine issue category and then uses that query to call the three loops for the three base magazine categories and their children categories/posts.

    In Summary: Is there a way to get custom field meta out of a page and into query_posts?

    #79526
    Argeaux
    Participant

    Returns posts with custom fields matching both a key of ‘color’ AND a value of ‘blue’:

    query_posts('meta_key=color&meta_value=blue'); 

    Returns posts with a custom field key of ‘color’, regardless of the custom field value:

    query_posts('meta_key=color'); 

    Returns posts where the custom field value is ‘color’, regardless of the custom field key:

    query_posts('meta_value=color');
    #79531
    shackep
    Member

    Thanks for the input Argeaux. For anyone else who is looking to do something similar.

    issue_num is the magazine issue number, 20 is catalogue number for featured articles.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.