
-
AuthorPosts
-
January 10, 2017 at 4:22 am #731352
Is there a feature that I can make the tags relationship instead of OR it’ll be AND? please refer below:
[av_blog blog_type='taxonomy' link='post_tag,1,2,3" blog_style='blog-grid' columns='3' contents='excerpt' content_length='content' preview_mode='auto' image_size='portfolio' items='-1' offset='0' paginate='no']
Notice the link=’post_tag,1,2,3″, it search the whole post having those 3 tag ID’s (1,2,3). Was there any method
to search a particular post having the 3 tag ID’s on a particular post?this didn’t work link=’post_tag,1&2&3″, or link=’post_tag,1+2+3″..
Kindly Advice
-
This topic was modified 8 years, 4 months ago by
kennethm. Reason: for notification
January 12, 2017 at 4:43 pm #732705I was looking for something like this.
Is gonna be awesome if Enfold theme could use the wordpress conditional tags for choose what I want to display in my blog page.January 13, 2017 at 2:20 pm #733125Hi kennethm
I created a function at functions.php to generate a shortcode to filtering…
slugtag = slug of the tag that you need filtering
idcat = id of the tag that you need filtering
qtdposts = number of posts that you want to displayHow it works?
display all posts with the category + slug[tagespecifica idcat=”ID OF CATEGORY” slugtag=”NAME OF TAG” qtdpost=”NUMBER OF POSTS TO DISPLAY”]
function tagespecifica($atts, $content){ extract( shortcode_atts( array( 'slugtag' => '', 'idcat' => '', 'qtdposts' => '' ), $atts, 'tagespecifica' )); $count = 0; $content .= '<div class="avia-content-slider avia-content-grid-active avia-content-slider-even">'; $content .= '<div class="avia-content-slider-inner">'; $content .= '<div class="slide-entry-wrap">'; query_posts('cat='.$idcat.'&showposts='.$qtdposts.'&tag='.$slugtag); while (have_posts()) : the_post(); if ($count === 0) { $classFirst = 'first'; } else { $classFirst = '';} $content .= '<article class="slide-entry flex_column post-entry slide-entry-overview slide-loop-1 slide-parity-odd av_one_fourth real-thumbnail '.$classFirst.' ">'; $content .= '<a href="'.get_the_permalink().'" class="slide-image">'; $content .= '<div class="imgthumb">'.get_the_post_thumbnail(null,'portfolio').'<span class="image-overlay overlay-type-extern"><span class="image-overlay-inside"></span></span></a>'; $content .= '<div class="slide-content"><header class="entry-content-header">'; $content .= '<h3 class="slide-entry-title entry-title" itemprop="headline">'; $content .= '<a href="'.get_the_permalink().'" title="'.get_the_title().'">'.get_the_title().'</a></h3>'; $content .= '<span class="av-vertical-delimiter"></span></header></div></article>'; $count++; endwhile; $content .= '</div></div></div>'; wp_reset_query(); return $content; } add_shortcode( 'tagespecifica' , 'tagespecifica' );
-
This reply was modified 8 years, 4 months ago by
denispiaia.
January 13, 2017 at 2:24 pm #733129Hi,
did you try to choose “Display entries from a custom taxonomy”? inside “Do you want to display blog posts?”? However, I guess for the kind of function you need, you have to search for a plugin with this function. Feel free to make a feature request for Kriesi here: https://kriesi.at/support/enfold-feature-requests/
Best regards,
Andy -
This topic was modified 8 years, 4 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.