Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can I add Content at the end of each blog post automatically?
Tagged: blog post
- This topic has 6 replies, 4 voices, and was last updated 11 years, 2 months ago by
Brad Dalton.
-
AuthorPosts
-
May 18, 2015 at 5:07 pm #152624
cjholbrook
ParticipantHi,
I have something I want to show at the end of each blog post - but not my pages. Is it possible to do this? And if so, how?
I used "simple hooks" and got the following:
http://www.coachingfordivorcedwomen.com/5-steps-to-sail-through-the-grieving-process-of-divorce/It's the 3 pictures below the "you might be interested in." I would really prefer them to be above this widget.
Thanks!!!
http://CoachingForDivorcedWomen.comMay 18, 2015 at 6:06 pm #152631Lauren @ OnceCoupled
MemberDoes your related posts widget have a shortcode you can use? If so, you could turn off automatic injection into posts, and instead place the shortcode under your content in Genesis Simple Hooks.
Best,
Lauren
We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com
May 18, 2015 at 10:52 pm #152664brock
MemberAlso Daily Dish Pro has an
after-entrywidget area that does this. It would be pretty easy to hook something right after the content but you would need to go into functions.php. I'm not familiar with the special recent posts plugin but the above advice might be worth trying to get it under control.May 19, 2015 at 12:05 am #152688Brad Dalton
ParticipantYour related posts plugin uses this filter
add_filter('the_content', 'igit_total_content');So you would need to use the same filter but with a higher priority for other content to display before the related posts
Or
Remove it and add it back manually in a later hook position ( which could be genesis_after_entry or genesis_entry_footer if the plugin includes a template tag.
Efficiency
The problem with related posts plugins are that they use lost of server resources like CPU.
May 19, 2015 at 11:19 am #152767cjholbrook
ParticipantThanks everyone. I'm baffled by all this. I think it may be a tad bit too techy for me.
I don't have an after-entry widget. However, I did a test on my simple-hooks plug--in the genesis_after_entry, which also put it on my pages. I only want this on my posts, that's why I have it in the before comment section.Which works for now.
BRAD ...
I don't understand the "filters"
And can the "related posts" harm my site. I'm confused at what you are saying.
If I purchased your coding support, could you also tell me how to add an email sign up bar directly under my menu? And does this tell us the exact codes and where to put them?
Thanks again, everyone!
May 19, 2015 at 6:29 pm #152836Lauren @ OnceCoupled
MemberIf the genesis_after_entry hook puts it int he correct place, try using
if( is_post() ){ /* code here */ }to limit where it is inserted.
Best,
Lauren
We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com
May 19, 2015 at 7:04 pm #152837Brad Dalton
Participant@cjholbrook Sign up here and send me your FTP hostname, username and password or a copy of your theme.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.