Slideshow not displayed in a category (list)
-
Hi, thanks for this great tool,
i create a slideshow : ‘slideshow1’, with several images.
i attach a slideshow into a meta field : ‘mymeta_attmeteor’.
Then i put this code into content.php (in a twentythirteen child theme) :$slideshowshort = rwmb_meta( 'mymeta_attmeteor' ); if ( function_exists( 'meteor_slideshow' ) ) { foreach ( $slideshowshort as $diapo ) { echo 'slideshow slug ='.$diapo.'<br>'; echo do_shortcode($diapo); } }
the rwmb_meta is because i use meta-box plugin,
mymeta_attmeteor is a clonable text field in which i put slideshow shortcode so that i then can have several slideshow attached to a post.
The meta field is then a serialized array.If i get to the page, the slideshow or slideshows (if several) display as expected, but in the category list, they don’t but “slideshow slug” with the slug name is correctly displayed.
To summarize :
in single.php, using get_template_part( ‘content’, get_post_format() );
=> slideshow is displayed
in category, using get_template_part( ‘content’, get_post_format() );
=> slideshow is NOT displayed
single.php and category.php are original twentythirteen page copied in the child theme
content.php is the original twentythirteen page copied in the child theme, where i only added the above codeIs this normal behaviour ?
How can i fix this ?
Thanks for any advice
- The topic ‘Slideshow not displayed in a category (list)’ is closed to new replies.