WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
Filter pages that have a particular field group (2 posts)

  1. edoher
    Member
    Posted 1 year ago #

    Hi, I need to filter pages that have the group "Destacada". I'm trying this, but doesn't work. Is there a way around it? Thanks!

    $args = array("post_type" => "page",
    			"sf_group" => "Destacada");
    
    			$my_query = simple_fields_query_posts($args);

    http://wordpress.org/extend/plugins/simple-fields/

  2. edoher
    Member
    Posted 1 year ago #

    I managed to get it done, but now I don't know how to loop through this query

    $args = array("post_type" => "page",
    				"sf_group" => "Destacada",
    				"sf_field" => "Resumen",
    				"sf_value" => "1",
    				"sf_compare" => "!=");
    
    				$the_query = simple_fields_query_posts($args);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.