How Can I Insert Specific Code Under My Blog Posts?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BreeziiKat
Forum Newbie
Posts: 3
Joined: Wed Oct 30, 2013 9:03 pm

How Can I Insert Specific Code Under My Blog Posts?

Post by BreeziiKat »

Hey everyone!! :)

I would like to add a snippet of code for a poll;

Code: Select all

<?php if ( function_exists('print_moodthingy_widget') ) { print_moodthingy_widget(); } ?>
I would like to add this code directly below my blog posts ONLY.. for example, I would like it to appear above where you see "Sharing is Sexy" but below the FaceBook 'Like' Button - here on this page, and all similar pages on my site: http://www.mybreality.com/difficult-desires/

I'm using WordPress.org... and I know how to go to Appearance > Editor, I'm just not sure which template to work with in order to make this happen, and I don't know WHERE to put this line of code on the template I need to put it on.

Thank you to anyone willing to help me out, you're a kind soul! :)
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How Can I Insert Specific Code Under My Blog Posts?

Post by Celauran »

single.php would be my first guess. I don't know if hosted WP works the same, mind you.
BreeziiKat
Forum Newbie
Posts: 3
Joined: Wed Oct 30, 2013 9:03 pm

Re: How Can I Insert Specific Code Under My Blog Posts?

Post by BreeziiKat »

I can make the poll appear if I insert the code into single.php - however I seem unable to make it show up EXACTLY where I want it. It's either showing up above the post or wayyy at the bottom, rather than where I mentioned I would like it to appear.

Hmm.. :?
BreeziiKat
Forum Newbie
Posts: 3
Joined: Wed Oct 30, 2013 9:03 pm

Re: How Can I Insert Specific Code Under My Blog Posts?

Post by BreeziiKat »

I'd be willing to grant temporary admin access, if anyone would like to help me with this on a more involved level, if you think that would help. :roll:
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How Can I Insert Specific Code Under My Blog Posts?

Post by Celauran »

I don't know how good an idea giving strangers admin access to your site is. Copy/pasting the template code so we can suggest where to place that snippet above might be a better idea.
Post Reply