• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Blog page Template Using multiple custom fields

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Blog page Template Using multiple custom fields

This topic is: not resolved

Tagged: blog page template, Custom fields

  • This topic has 6 replies, 2 voices, and was last updated 12 years ago by ignitos.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 31, 2014 at 8:04 am #130007
    ignitos
    Member

    i'm using Genesis blogpage template for creating new pages. i'm using custom field "query_args" to filter posts.

    now what i'm trying to filter posts with some custom field value using below code and its working fine.

    meta_key=wpcf-rim-diameter&meta_value=14

    now when i try to filter out posts with more then 1 custom fields its not working. like this code

    meta_key=wpcf-rim-diameter&meta_value=14&meta_key=wpcf-aspect-ratio&meta_value=65

    plz guide me on this issue how i filter posts with more then 1 custom fields.

    Thanks.

    November 2, 2014 at 8:21 am #130180
    ignitos
    Member

    more then 24 Hours and yet no reply?

    November 2, 2014 at 8:33 am #130183
    Genesis Developer
    Member

    Get the Idea from Multiple Custom Field Handling: http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    November 2, 2014 at 8:38 am #130185
    ignitos
    Member

    @ genwork "WP_query" uses Array for multiple custom fields

    i wonder how we can use array with “query_args”

    November 8, 2014 at 6:06 am #130895
    ignitos
    Member

    is it possible to use multiple custom fields value with "query_args" ?

    plz plz advise on this issue

    otherwise i have to create template for each option.

    Thanks in advance

    November 8, 2014 at 8:37 am #130902
    Genesis Developer
    Member

    share your full code


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    November 8, 2014 at 9:37 am #130904
    ignitos
    Member

    as you can see in my first post
    meta_key=wpcf-rim-diameter&meta_value=14
    is working fine.
    but
    meta_key=wpcf-rim-diameter&meta_value=14&meta_key=wpcf-aspect-ratio&meta_value=65

    not working with “query_args” Custom field

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble