WordPress.org

Forums

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

  1. edoher
    Member
    Posted 2 years 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 2 years 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

  • Simple Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.