Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom Blog Style Category Page – Lifestyle Pro
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by
Marcy.
-
AuthorPosts
-
January 12, 2015 at 3:17 pm #137235
Kim Turcotte
MemberI am trying to create a testimonials page template where I can pull in all the posts with the category "applause" using a widget area and using the Genesis Featured Widget Amplified which let's me choose whether or not to include title, excerpt or content etc. I would also like to be able to have text that shows above the content I am pulling onto the template.
I had done this in the past on the older Lifestyle theme by creating a custom page template and registering the sidebar referenced in the custom page template. I tried copying what I did before, but it didn't work with Lifestyle Pro and I have no clue why.
Here is an example of what I want it to do (this is the old Lifestyle Theme): http://www.goddesslifestyleplan.com/applause-testimonials/
Here is what I did on the new site I am working on:
I started by registering an Applause Sidebar with this code added to my functions.php
genesis_register_sidebar(array( 'id' => 'applause', 'name'=>'Applause', 'description' => 'This is the widget to customize content on the Applause page template.', ));
Then I created a page template named: page_applause.php
Here is the code I have in it (this code is from a similar page I created when using the older version of the Lifestyle Theme)
<?php // Template Name: Applause Page // For backward compatibility add_action('genesis_after_post_content', 'featured_bottom_after_content'); function featured_bottom_after_content() { dynamic_sidebar('Applause'); } require_once(PARENT_DIR. '/index.php'); ?>
When I select the Applause template and try to pull in the content with the featured widget amplified, it isn't working. 🙁
Any help would be greatly appreciated.
http://www.goddesslifestyleplan.com/magic/applause-testimonials/January 14, 2015 at 6:15 pm #137495Marcy
ParticipantThe hook 'genesis_after_post_content' is pre-HTML5 hooks; all the Pro themes are HTML5 which has different hooks.
I think that I would try using 'genesis_after_entry_content' or maybe 'genesis_after_entry', depending on where you actually want it.
There are 2 newer plugins to use for your custom post types.
Genesis Sandbox Featured Content Widget - https://wordpress.org/plugins/genesis-featured-content-widget/
Featured Custom Post Type - https://github.com/calliaweb/featured-custom-post-type-widget-for-genesisThe hook guide is in your MyStudioPress under Tutorials. It has the HTML5 and older hooks.
Marcy | Amethyst Website Design | Twitter
February 10, 2015 at 1:27 pm #140367Kim Turcotte
MemberMarcy,
Thanks so much! This did the trick!
Kim
February 10, 2015 at 8:47 pm #140427Marcy
Participant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.