danleedham
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot redeclare get_header() on External Page post callThanks for the feedback although when I do change it to require once, it still gives the error. Having a little poke around, it appears a college has use the function get_header & get_footer before:
function get_header($title) { include("header.php");I’ve renamed these functions to get_AREANAME_header, and now it all works just fine. Makes me wonder what I’d do if I had various WP sites within the big site and I wanted to pull all their headers – would I have to use a multisite site?
Since the 3.4 update, this is no longer a needed feature as WP has it built in. Will the plugin give the option to have simply the link posted and so the tweet show up like it’s been properly embedded?
So I’ve had a deeper look into the code and on line 499 following I found
function do_tweet_post($tweet) { global $wpdb; remove_action('publish_post', 'aktt_notify_twitter', 99); $data = array( 'post_content' => $wpdb->escape(aktt_make_clickable($tweet->tw_text))Would I be right in just adding something like:
post_content' =>' <blockquote><p>' . $wpdb->escape(aktt_make_clickable($tweet->tw_text)) . '</blockquote> <script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>'Looking forward to some guidance 🙂