k00ij
Forum Replies Created
-
Renji,
Can you explain the “action=flush’ trick you used to get it to stop displaying duplicates?
Hi Mitcho,
I’m having the same issue.
For example: https://www.thecollaredsheep.com/cartoon-i-am-looking-for-a-position/
triple links to the same post. It just started happening with the most recent update I believe.
Any ideas?
Guys – really could use some help on this? Any ideas at all?
Finally figured it out – needed to use get_the_author_meta instead of just the_author_meta
function my_author_box() { $author_name = the_author(); $site_link = get_the_author_meta('user_url'); $author_desc = get_the_author_meta('description'); $facebook_link = get_the_author_meta('aim'); $twitter_link = get_the_author_meta('yim'); $author_img_link = get_the_author_meta('jabber'); $return_text = '<div id="author-info"><div id="author-image"><a href="'.$site_link.'"><img src="'.$author_img_link.'" alt="'.$author_name.'" title="'.$author_name.'"/></a></div><div id="author-bio"><h4>Written by '.$author_name.'</h4><p>'.$author_desc.'</p></div></div>'; return $return_text; } add_shortcode('authorbox', 'my_author_box');
btw – that function is placed in functions.php
Samboll – thanks, that’s a good start, but it’s not quite the answer I’m looking for because they don’t mention how to reconnect to the other DB.
Essentially, I have an external site. It has its own database. I want it to have the same header, footer, and sidebar of my wordpress site. I call wp-blog-header.php on the external page, and it then displays the header correctly.
However, I believe it resets the DB connection to the wordpress site. I need it to be set back to the other DB. Any idea how to do this? Can I avoid the DB connection to the wordpress DB from wp-blog-header? Is there a better way to do this? Any suggestions or advice would be greatly appreciated.