How to I add a link To the end of every post??
Looking for a way to add a like to the end of every single post? Cant file a file like single.php...
|
why not put it in the post footer ATO->Edit POST/PAGE INFO ITEMS->FOOTER:xxxxx
|
im lookin to put it at the end of the body... adsense code and a link
|
you could add code in ATO->Style & edit CENTER COLUMN->The LOOP
|
k i noticed that but i cant get it to not show on the main page...
Code:
<?php |
|
k works for my link but seems not to want to work for my adsense code... any ideas??
Code:
<?php if (is_single()) |
ohhh, your using a shortcode and this is just being added directly to the HTML that is being generated, the short code is not being expanded.
I think your going to have to put the shortcode in a post, look at the result and tehn copy the html and add that in in place of your shortcode in 'The LOOP' |
im confused what should i be using???
|
It looks like you are using a shortcode in this code you are adding into 'The LOOP' - the short code won't be dealt with if it is there. This section is part of the 'processing' logic, it DOES the proce3ssing on teh information, it's not the INFORMATION (I know this is general terms, but I can't think of a better way to explain it)
It would be like putting a shortcode in a widget's php and expecting that code to be expanded. Won't happen. [shortcode] = 'some chunk of code' in your code HTML Code:
<?php |
k so i put this code in and nothing came out.
Code:
<?php if (is_single()) |
what is the url?
|
promotorrents.com
|
Why not just put a new widget area where you want it, and then use a text widget or a specialized Adsense plugin widget?
|
im new to template editing.. so ur saying put the codes in a widget then put the widget at the end of the post??
|
Atahualpa lets you create new widget areas. Look at the theme options and read the directions. You can do this without editing any theme files, just through the new widget creation option.
You could of course also create a new template with your added code, but that seem like the messier way to do it. |
If I read this right baronsamedi wants the AD to be put at the end of each post's body, before the post footer. (baronsamedi: is that correct?)
Can you copy and paste here teh entire contents of 'The LOOP' |
Code:
<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */ |
I don't see your code in the LOOP - did you remove it?
|
I've been working on this for days, trying to insert a contact form at the end of each post. I had it working with cform II, but there are other issues with it.
I'm using Fast Secure Contact Form, that uses a 'shortcode' on the page or posts and it works great. But I want to put it into 'The Loop' so I don't have to edit 500 posts individually. I've followed this thread and have the following: <? php if (is_single() ) { html of shortcode }; ?> I tried getting the html of the shorcode using Firefox, but I was getting errors. Any help would be appreciated, Thanks, Doc |
your php is in error, it should be
HTML Code:
<?php if (is_single() ) { html of shortcode }; ?> |
Here is the shortcode: [si-contact-form form='1']
Here is the error I keep getting: Parse error: syntax error, unexpected '<' in /home/ffstock/public_html/discontinuedkohler.com/wp-content/themes/atahualpa353/functions.php(532) : eval()'d code on line 21 Here is the link to the site: http://www.discontinuedkohler.com Here is the HTML and php: <?php if (is_single() ) { <p>Got Questions - Contact Us!</p> <!-- Fast Secure Contact Form plugin - begin - http://www.FastSecureContactForm.com --> <a name="FSContact1" id="FSContact1"></a> <div style="width: 375px;"> <form action="http://discontinuedkohler.com/contact-us/#FSContact1" id="si_contact_form1" method="post"> <div style="text-align: left;"><span class="required">*</span>(denotes required field)</div> <div><input name="si_contact_CID" value="1" type="hidden"></div> <div style="text-align: left; padding-top: 5px;"> <label for="si_contact_name1">Name: <span class="required">*</span></label> </div> <div style="text-align: left;"> <input style="text-align: left; margin: 0pt;" id="si_contact_name1" name="si_contact_name" value="" size="40" type="text"> </div> <div style="text-align: left; padding-top: 5px;"> <label for="si_contact_email1">E-Mail Address: <span class="required">*</span></label> </div> <div style="text-align: left;"> <input style="text-align: left; margin: 0pt;" id="si_contact_email1" name="si_contact_email" value="" size="40" type="text"> </div> <div style="text-align: left; padding-top: 5px;"> <label for="si_contact_subject1">Subject: <span class="required">*</span></label> </div> <div style="text-align: left;"> <input style="text-align: left; margin: 0pt;" id="si_contact_subject1" name="si_contact_subject" value="" size="40" type="text"> </div> <div style="text-align: left; padding-top: 5px;"> <label for="si_contact_message1">Message: <span class="required">*</span></label> </div> <div style="text-align: left;"> <textarea style="text-align: left; margin: 0pt;" id="si_contact_message1" name="si_contact_message" cols="30" rows="10"></textarea> </div> <div style="text-align: left; padding-top: 5px;"> <label for="si_contact_captcha_code1">CAPTCHA Code: <span class="required">*</span></label> </div> <div style="text-align: left;"> <input style="text-align: left; margin: 0pt;" value="" id="si_contact_captcha_code1" name="si_contact_captcha_code" size="6" type="text"> </div> <div style="text-align: left; padding-top: 5px;"> <div style="width: 250px; height: 65px; padding-top: 5px;"> <img class="ctf-captcha" id="si_image_ctf1" style="border-style: none; margin: 0pt; padding: 0px 5px 0px 0px; float: left;" src="http://discontinuedkohler.com/wp-content/plugins/si-contact-form/captcha-secureimage/securimage_show.php?ctf_form_num=1&prefix=NHTB gsQxFhONhmG8" alt="CAPTCHA Image" title="CAPTCHA Image"> <input id="si_code_ctf_1" name="si_code_ctf_1" value="NHTBgsQxFhONhmG8" type="hidden"> <div id="si_audio_ctf1"> <a id="si_aud_ctf1" href="http://discontinuedkohler.com/wp-content/plugins/si-contact-form/captcha-secureimage/securimage_play.php?ctf_form_num=1&prefix=NHTB gsQxFhONhmG8" rel="nofollow" title="CAPTCHA Audio"> <img src="http://discontinuedkohler.com/wp-content/plugins/si-contact-form/captcha-secureimage/images/audio_icon.png" alt="CAPTCHA Audio" style="border-style: none; margin: 0pt; padding: 0px; vertical-align: top;" onclick="this.blur();"></a> </div> <div id="si_refresh_ctf1"> <a href="#" rel="nofollow" title="Refresh Image" onclick="si_contact_captcha_refresh('1','wav','/wp-content/plugins/si-contact-form/captcha-secureimage','http://discontinuedkohler.com/wp-content/plugins/si-contact-form/captcha-secureimage/securimage_show.php?ctf_form_num=1&prefix='); return false;"> <img src="http://discontinuedkohler.com/wp-content/plugins/si-contact-form/captcha-secureimage/images/refresh.png" alt="Refresh Image" style="border-style: none; margin: 0pt; padding: 0px; vertical-align: bottom;" onclick="this.blur();"></a> </div> </div> </div> <div style="text-align: left; padding-top: 5px;"> <input name="si_contact_action" value="send" type="hidden"> <input name="si_contact_form_id" value="1" type="hidden"> <input style="cursor: pointer; margin: 0pt;" value="Submit" type="submit"> </div> </form> </div> <p style="font-size: x-small; font-weight: normal; padding-top: 5px;">Powered by <a href="http://wordpress.org/extend/plugins/si-contact-form/">Fast Secure Contact Form</a></p> <!-- Fast Secure Contact Form plugin - end - http://www.FastSecureContactForm.com --> }; ?> Thanks for checking this, Doc |
you are mixing your php and html and confusing things. you need to change the first line to
HTML Code:
<?php if (is_single() ) { ?> HTML Code:
<?php }; ?> |
Works perfectly. Thank you again for your help.
|
All times are GMT -6. The time now is 08:55 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.