Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #225418

    Hi!
    My problem is easy (for you). I need to Exclude the category “Exhibition” from archive page.
    Actually these are my args query:

    				$args = array(
    					'post_type'=>'portfolio',
    					'orderby' => 'date',
    					'order' => 'DESC',
    					'posts_per_page' => 10,
    					'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
    				);

    How I can edit this to resolve my problem?
    Thank you very much!

    Good morning,
    Riccardo

    #227431

    Hey aparma!

    Try:

    
    				$args = array(
    					'post_type'=>'portfolio',
    					'tax_query' => array( 	array( 	'taxonomy' 	=> 'portfolio_entries',
    														     'field' 	=> 'id',
    													             'terms' 	=> array(103),
    														     'operator' 	=> 'NOT IN'))),
    					'orderby' => 'date',
    					'order' => 'DESC',
    					'posts_per_page' => 10,
    					'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
    				);
    

    and instead of 103 insert the id of your “Exhibition” category.

    Regards,
    Peter

    #227515

    Thank you very much! It works!

    Another little question: where can I find “ALL” auto-category of portfolio? I need delete it or change his query :)

    Regars,
    Riccardo

    #228235

    Hi!

    Please try using this plugin http://wordpress.org/plugins/codestyling-localization/
    or go to wp-content\themes\eunoia\includes folder and open loop-portfolio.php file and find

    ('All','avia_framework')

    and change as needed

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.