-
AuthorPosts
-
January 6, 2014 at 8:23 pm #205951
Hello: On the home page I have a post slider to feature a select category. At the end of the post itself, I also include a call to action button. However the button is not appearing. additionally, in an earlier response, you indicated how I could get the entire post to appear but in updating the theme, it seems that it overrode that option.
#1 How do I get the shortcodes to work in a post slider? (I also tried the Blog Slider but to get the layout needed (3 posts in 3 columns, next to each other in their entirety), I have to use the Grid layout. This is a single author site, and I don’t need/want the post date/author to appear.)
#2, How do I remove the author/post date info. See url here: ****/
#3 Under the WOD page, all posts with the category WOD ticked are supposed to appear. However ALL posts are appearing. I just want the WOD category posts, with no author/post date, in 3 columns. How do I achieve that?
#4 how do I prevent the php change in config-templatebuilder > avia-shortcodes > postslider.php from getting overridden once updated to allow the entire post?
Thanks!
January 9, 2014 at 2:13 pm #207422Hi lisabarfield!
1) By default excerpts don’t support html code or shortcodes. You can use the do_shortcodes() function to execute shortcodes though. Open up /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php and search for
if($loop_counter == 1) $output .= "<div class='slide-entry-wrap'>";
Replace the code with
$excerpt = do_shortcode($excerpt); if($loop_counter == 1) $output .= "<div class='slide-entry-wrap'>";
2) Replace
if($show_meta && !empty($excerpt))
with
$show_meta = false; if($show_meta && !empty($excerpt))
3) Did you select the WODs page as blog page (Enfold > Theme Options)? If yes please select another page as blog page otherwise the WODs page will ignore the template builder settings and it will use a special blog template for this page instead.
4) You can place it in the child theme folder. However you must add some code into the child theme functions.php file to overwrite the original parent theme code – see: https://kriesi.at/support/topic/have-easyslider-fill-up-entire-column-with-no-padding-or-margins/#post-205281
Best regards,
PeterJanuary 9, 2014 at 4:26 pm #207492This reply has been marked as private.January 13, 2014 at 10:12 am #208869Hi!
1) Ok, maybe you’re using another excerpt option. Please search for
$prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_postgrid_excerpt_length' , 60) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", true, '');
and replace it with
$prepare_excerpt = !empty($entry->post_excerpt) ? do_shortcode($entry->post_excerpt) : avia_backend_truncate(do_shortcode($entry->post_content), apply_filters( 'avf_postgrid_excerpt_length' , 60) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", true, '');
If you always want to show the full content (including html, etc.) replace it with
$prepare_excerpt = do_shortcode($entry->post_content);
3) But the category page for WODS would be http://crossfitcaldwell.com/category/wod/ and not http://crossfitcaldwell.com/wods/
The “archive template” is a special template which lists the latest posts of all categories. If you want to link to the category page just go to Appearance > Menus and add the “WODS” category item to the main menu.Regards,
PeterJanuary 17, 2014 at 4:34 pm #211258This had worked when you first sent this but I just checked the site today and now it’s reverted to the default settings. I checked the postslider.php file and it’s the edited version and I have a copy of the code above in a “shortcodes” folder. Any thoughts?
January 20, 2014 at 10:51 am #212160Hey!
Hmmm… not sure why it stopped working especially because the server always executes the same code. Maybe the website was cached and the first code I posted here: https://kriesi.at/support/topic/post-slider-need-to-show-full-story-and-button-content-element/#post-207422 worked?
Best regards,
PeterMarch 3, 2014 at 7:52 pm #231784This reply has been marked as private.March 7, 2014 at 10:59 am #233679Hey!
Please create me an admin account and post the login credentials as private reply – I’ll check the configuration.
Regards,
PeterMarch 10, 2014 at 4:12 pm #234769This reply has been marked as private.March 13, 2014 at 8:26 am #236732Hey!
Please post the credentials here and use the “Set as private reply” checkbox to mark the post as private.
Regards,
PeterMarch 13, 2014 at 2:41 pm #236933This reply has been marked as private.March 17, 2014 at 1:08 am #238432I’ve tagged the topic for Dude so he can login and take a look.
March 17, 2014 at 8:45 am #238527Hi!
I think the slider supports html code just fine. However the post you display with the slider ( http://crossfitcaldwell.com/mon-mar-17/ ) did not contain html code. I added some paragraph, line breaks and a shortcode to it and everything is also displayed in the “WOD” slider.
Cheers!
Peter -
AuthorPosts
- The topic ‘Post Slider: need to show full story and button content element’ is closed to new replies.