Forums › Forums › Search & Filter Pro › Custom taxonomy shortcode doesn't display initially on search page
- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by Trevor.
-
Anonymous(Private) June 20, 2016 at 7:21 pm #48951
Hi,
I am using wp-types and have the shortcode for displaying taxonomy on the page:
[wpv-post-taxonomy type='product-groep' format='name']
Which produces text ouput like: category-custom1
When loading the search page (using S&F shortcode for resultas and filter – AJAX) the taxonomy isn’t shows initially. But when i filter the results the taxonomy suddenly displays in the result.
Why doesn’t this display initially on first page load? Can something be done here to correct this?
Thanks in advance!
MarcellinoAnonymous(Private) June 20, 2016 at 8:59 pm #48972Trevor,
No problem! Sometime tomorrow is fine 🙂
Here is the URL of the page (using shortcode to display results – ajax enabled).
http://durinck.wwwconcept.nl/downloads/
On page load the taxonomy doesn’t show beneath the download button, but when you apply filter on ‘Productgroep’, it filters the results and also displays the taxonomy at this time.
I am using the search-filter/search.php file without modifications.
The while loop is:
`<?php
while ($query->have_posts())
{
$query->the_post();?>
<li><span><?php echo the_content(); ?>
<?php echo get_the_term_list( $post->ID, ‘product-groep’, ‘Groep: ‘, ‘, ‘ ); ?>
</span></li><?php
}
?>`Why doesn’t the taxonomy display on initial page load?
Thanks
MarcellinoAnonymous(Private) June 21, 2016 at 7:34 am #48983Trevor,
It looks the shortcode from the download plugin causes the taxonomy not to show.
I am using plugin ‘Download Monitor’.
The shortcode is
[download id="xxx"]
.When removing the shortcode from a page it shows the taxonomy on page load (see sample url).
Marcellino
Trevor(Private) June 21, 2016 at 8:15 am #48985So, if I understand what you are saying, you have a free plugin called wp-types and that shows the Taxonomy of the page from a shortcode.
But, when it is on a page that is populated by another free plugin, called Download Monitor, the types shortcode does not work? Or it does work as long as S&F isn’t on the page also?
When you add our plugin, the Types shortcode still does not work on page load, but does work after a filter has been run?
-
AuthorPosts