Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Coding for %pinit% in footer?

Old Feb 24, 2012, 01:28 PM
32 posts · Feb 2010
Can someone write some code for me that I can add into the bfa_postinfo.php so that I can use the shortcode %pinit% in my footer? I'm using the pinterest plugin (http://pinterestplugin.com/)

Old Feb 24, 2012, 01:36 PM
32 posts · Feb 2010
PS the shortcode that I need it to output is:

<?php echo do_shortcode('[pinit]'); ?>

I know I need to add something similar to the Sociable one:

// For the "Sociable" plugin
	if ( strpos($postinfo_string,'%sociable%') !== FALSE ) {
		$sociable = ( (function_exists('sociable_html2') AND
		function_exists( do_sociable() ) ) ? do_sociable() : "");
		$postinfo = str_replace("%sociable%", $sociable, $postinfo);
but not sure what to replace

Last edited by kristal; Feb 24, 2012 at 01:39 PM.
Old Feb 25, 2012, 10:05 AM
lmilesw's Avatar
10,174 posts · Jul 2009
Central New York State USA
That is the type of issue where the ability to add a new widget are can be handy. You can add a new widget area where you want to put the Pinit shortcode and then add the shortcode to the widget after installing a plugin that allows for shortcodes to be executed in a text widget.

If you edit the theme files as you wanted then you will have to re-edit if you ever upgrade the theme.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
New in here and new to coding. AwesomeDude Atahualpa 3 Wordpress theme 6 Oct 22, 2011 05:51 PM
Could someone please answer a coding question ... phogzzz Atahualpa 3 Wordpress theme 3 Apr 5, 2011 04:19 PM
Can I achieve this with widgets? Or do I need custom coding - can pay for help. nickcroker Sidebars & Widgets 9 Dec 4, 2010 04:15 AM
How to add post images and excerpts to coding? optimalwebsite Center area post/pages 0 Jul 24, 2010 06:02 AM
Where is php sidebar coding pamlicoink Sidebars & Widgets 3 Aug 12, 2009 06:07 PM

All times are GMT -6. The time now is 01:49 PM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.