Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support How to get the template part working with WPSP? Reply To: How to get the template part working with WPSP?

#5539
Alberto
Participant

Just in case it’s clearer, this is the var_exports output just only with gender and femenino (and it works):

WP_Query::__set_state(array(
   'query' => 
  array (
    'order' => 'desc',
    'orderby' => 'date',
    'post_type' => 'locuciones',
    'posts_per_page' => 12,
    'paged' => 0,
    'post_status' => 
    array (
      0 => 'publish',
    ),
    'tax_query' => 
    array (
      0 => 
      array (
        'taxonomy' => 'genero',
        'field' => 'slug',
        'terms' => 
        array (
          0 => 'femenino',
        ),
        'operator' => 'IN',
      ),
    ),
  ),
   'query_vars' => 
  array (
    'order' => 'DESC',
    'orderby' => 'date',
    'post_type' => 'locuciones',
    'posts_per_page' => 12,
    'paged' => 0,
    'post_status' => 
    array (
      0 => 'publish',
    ),
    'tax_query' => 
    array (
      0 => 
      array (
        'taxonomy' => 'genero',
        'field' => 'slug',
        'terms' => 
        array (
          0 => 'femenino',
        ),
        'operator' => 'IN',
      ),
    ),
    'error' => '',
    'm' => '',
    'p' => 0,
    'post_parent' => '',
    'subpost' => '',
    'subpost_id' => '',
    'attachment' => '',
    'attachment_id' => 0,
    'name' => '',
    'static' => '',
    'pagename' => '',
    'page_id' => 0,
    'second' => '',
    'minute' => '',
    'hour' => '',
    'day' => 0,
    'monthnum' => 0,
    'year' => 0,
    'w' => 0,
    'category_name' => '',
    'tag' => '',
    'cat' => '',
    'tag_id' => '',
    'author' => '',
    'author_name' => '',
    'feed' => '',
    'tb' => '',
    'meta_key' => '',
    'meta_value' => '',
    'preview' => '',
    's' => '',
    'sentence' => '',
    'title' => '',
    'fields' => '',
    'menu_order' => '',
    'embed' => '',
    'category__in' => 
    array (
    ),
    'category__not_in' => 
    array (
    ),
    'category__and' => 
    array (
    ),
    'post__in' => 
    array (
    ),
    'post__not_in' => 
    array (
    ),
    'post_name__in' => 
    array (
    ),
    'tag__in' => 
    array (
    ),
    'tag__not_in' => 
    array (
    ),
    'tag__and' => 
    array (
    ),
    'tag_slug__in' => 
    array (
    ),
    'tag_slug__and' => 
    array (
    ),
    'post_parent__in' => 
    array (
    ),
    'post_parent__not_in' => 
    array (
    ),
    'author__in' => 
    array (
    ),
    'author__not_in' => 
    array (
    ),
    'ignore_sticky_posts' => false,
    'suppress_filters' => false,
    'cache_results' => true,
    'update_post_term_cache' => true,
    'lazy_load_term_meta' => true,
    'update_post_meta_cache' => true,
    'nopaging' => false,
    'comments_per_page' => '50',
    'no_found_rows' => false,
    'taxonomy' => 'genero',
    'term' => 'femenino',
  ),
   'tax_query' => 
  WP_Tax_Query::__set_state(array(
     'queries' => 
    array (
      0 => 
      array (
        'taxonomy' => 'genero',
        'terms' => 
        array (
          0 => 'femenino',
        ),
        'field' => 'slug',
        'operator' => 'IN',
        'include_children' => true,
      ),
    ),
     'relation' => 'AND',
     'table_aliases' => 
    array (
      0 => 'ch1n0_term_relationships',
    ),
     'queried_terms' => 
    array (
      'genero' => 
      array (
        'terms' => 
        array (
          0 => 'femenino',
        ),
        'field' => 'slug',
      ),
    ),
     'primary_table' => 'ch1n0_posts',
     'primary_id_column' => 'ID',
  )),
   'meta_query' => 
  WP_Meta_Query::__set_state(array(
     'queries' => 
    array (
    ),
     'relation' => NULL,
     'meta_table' => NULL,
     'meta_id_column' => NULL,
     'primary_table' => NULL,
     'primary_id_column' => NULL,
     'table_aliases' => 
    array (
    ),
     'clauses' => 
    array (
    ),
     'has_or_relation' => false,
  )),
   'date_query' => false,
   'request' => 'SELECT SQL_CALC_FOUND_ROWS  ch1n0_posts.ID FROM ch1n0_posts  LEFT JOIN ch1n0_term_relationships ON (ch1n0_posts.ID = ch1n0_term_relationships.object_id) WHERE 1=1  AND ( 
  ch1n0_term_relationships.term_taxonomy_id IN (63)
) AND ch1n0_posts.post_type = \'locuciones\' AND ((ch1n0_posts.post_status = \'publish\')) GROUP BY ch1n0_posts.ID ORDER BY ch1n0_posts.post_date DESC LIMIT 0, 12',
   'posts' => 
  array (
    0 => 
    WP_Post::__set_state(array(

and so on till 3 and then:

),
   'post_count' => 4,
   'current_post' => -1,
   'in_the_loop' => false,
   'post' => 
  WP_Post::__set_state(array(
     'ID' => 485,
     'post_author' => '3',
     'post_date' => '2017-07-07 20:45:47',
     'post_date_gmt' => '2017-07-07 20:45:47',
     'post_content' => '革命根据地广告

La siguiente locución en chino es una narración con voz femenina acerca de un lugar histórico de la revolución e[audio mp3="http://traduccioneschino.es/wp-content/uploads/2017/07/Locutor-femenino-chino-2.mp3"][/audio]n china.',
     'post_title' => 'Locutor femenino chino 2',
     'post_excerpt' => '',
     'post_status' => 'publish',
     'comment_status' => 'closed',
     'ping_status' => 'closed',
     'post_password' => '',
     'post_name' => 'grabacion-audio-mujer-chino',
     'to_ping' => '',
     'pinged' => '',
     'post_modified' => '2017-07-07 20:45:47',
     'post_modified_gmt' => '2017-07-07 20:45:47',
     'post_content_filtered' => '',
     'post_parent' => 0,
     'guid' => 'http://traduccioneschino.es/?post_type=locuciones&p=485',
     'menu_order' => 0,
     'post_type' => 'locuciones',
     'post_mime_type' => '',
     'comment_count' => '0',
     'filter' => 'raw',
  )),
   'comment_count' => 0,
   'current_comment' => -1,
   'found_posts' => '4',
   'max_num_pages' => 1.0,
   'max_num_comment_pages' => 0,
   'is_single' => false,
   'is_preview' => false,
   'is_page' => false,
   'is_archive' => true,
   'is_date' => false,
   'is_year' => false,
   'is_month' => false,
   'is_day' => false,
   'is_time' => false,
   'is_author' => false,
   'is_category' => false,
   'is_tag' => false,
   'is_tax' => true,
   'is_search' => false,
   'is_feed' => false,
   'is_comment_feed' => false,
   'is_trackback' => false,
   'is_home' => false,
   'is_404' => false,
   'is_embed' => false,
   'is_paged' => false,
   'is_admin' => false,
   'is_attachment' => false,
   'is_singular' => false,
   'is_robots' => false,
   'is_posts_page' => false,
   'is_post_type_archive' => true,
   'query_vars_hash' => '81627f9b7acc5e4d0700f02047642d52',
   'query_vars_changed' => false,
   'thumbnails_cached' => false,
   'stopwords' => NULL,
   'compat_fields' => 
  array (
    0 => 'query_vars_hash',
    1 => 'query_vars_changed',
  ),
   'compat_methods' => 
  array (
    0 => 'init_query_flags',
    1 => 'parse_tax_query',
  ),
))