This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Tags as Custom Fields

  • Creator
    Topic
  • #7995
    jnapier
    Participant

    Jason, is there a way to use a Tag as a custom field for a page? I would like to create a page with a post list that has posts that contain a specific tag.

    Jim

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #8008
    Jason Bobich
    Keymaster

    You’re not going to be able to do this through any custom query option in the theme by default because this cannot be done with a simple query string. As far as I know, you can only do this with an actual array of arguments for your query.

    So, you’d have to actually filter in your own custom query through PHP for your post lists. See #2 here for an interesting approach on accomplishing this general idea of transforming a Builder element’s custom query option into a query you actually program in from your Child theme’s functions.php:

    http://support.themeblvd.com/forums/topic/tip-simulate-post-grid-for-specific-pages/#post-985

    And then, once you’re in control of the query for your post list from your Child theme’s functions.php, here’s how you make a WP query by a custom field:

    https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters

Viewing 1 replies (of 1 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.