Post Footer Question?? :o)

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
User avatar
BreKat23
Forum Newbie
Posts: 10
Joined: Tue Jul 16, 2013 6:08 pm

Post Footer Question?? :o)

Post by BreKat23 »

Hello :)

I am using the SimplePress Theme and within the theme's e-panel (in the wordpress admin area) there is an option for me to integrate code that goes beneath my post content.

Well, I inserted an Aweber Webform in this section, so that ppl who read my articles have the option of signing up to my list.

However - this Aweber webform is also showing up under my PAGE content... and I only want it to show up under my POST content.... does anyone know what I might be able to do to troubleshoot this?

Thanks a ton!!

-Bre :)
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: Post Footer Question?? :o)

Post by mecha_godzilla »

Hi,

You have two options here - you can either install a widget to control which pages your AWeber form appears on (some examples include Widget Context and Widget Logic, although some of these widgets are not all that easy to use) or you can manually edit the WordPress scripts. If you're prepared to edit the scripts, there is a function that you can use to test whether it's a post or a page that has been loaded:

http://codex.wordpress.org/Function_Reference/is_single

As an example of how you might just this, you need to find out which script in your theme is responsible for outputting the code at the end of the post (or page) content and you can then add a conditional test based on what the result of is_single() was.

HTH,

Mecha Godzilla
User avatar
BreKat23
Forum Newbie
Posts: 10
Joined: Tue Jul 16, 2013 6:08 pm

Re: Post Footer Question?? :o)

Post by BreKat23 »

Thanks for the reply Mecha!!

As for the first option (a widget) I'd really rather not go that route... you see I had a plugin installed already (the Post Footer Plugin), which did work well enough, but I have sooooooo many plugins already that bog my site down, so instead I figured I'd take advantage of my theme's post footer section, which also works perfectly... other than it appearing under Page content.

I know it has to be possible with the correct coding, my problem is I'm not all too tech-savvy when it comes to this stuff haha, which is why I'm desperately seeking assistance here from anyone willing to give me a little guidance.

Which, as a side-note, is SUPER appreciated you have no idea!

Sooo.... I'm not sure how to go about all of this, haha - for example the link you shared with me, I couldn't make much sense of.

Could you maybe dumb down your words for me, lol, I feel like I need a watered down, step-by-step version on how to go about this (my apologies). :cry: :roll:

I'm willing to follow along and do what I must, so long as it IS possible for me to do.

I'm not entirely sure which script is outputting the code at the end of the pages, because the text area to input the code for my aweber form is in the themes e-panel, and it doesn't say where the actual code goes in the script... which script, I do not know.

I wish I could send an attachment or something haha, so you can see images of what I mean, I'm hoping I make sense here.. 8)

Hmm..... :?
User avatar
BreKat23
Forum Newbie
Posts: 10
Joined: Tue Jul 16, 2013 6:08 pm

Re: Post Footer Question?? :o)

Post by BreKat23 »

Hope you (Mecha)... or maybe someone else could still help me with this please... :cry:
Post Reply