Skip to main content

Posts

Showing posts from August, 2019

Toolset conditional

[wpv- if evaluate= "'[wpv-current-user info='id']' = '[wpv-post-author format='meta' meta='ID']' OR '[wpv-current-user info='role']' = 'administrator'" ]      //the content you want to hide goes here [/wpv- if ]

Call posts using query

$args = array (      'post_type' => 'post' ,      'tax_query' => array (          'relation' => 'OR' ,          array (              'taxonomy' => 'category' ,              'field'     => 'slug' ,              'terms'     => array ( 'quotes' ),          ),          array (              'taxonomy' => 'post_format' ,              'field'     => 'slug' ,        ...