golddave
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Tags Not Showing With the_tags() In ThemeIt is in the loop. I’m using it right after the_content(). I’m using it this way in a different blog and it’s working fine there.
Forum: Plugins
In reply to: Converting Postmeta Records to WordPress 2.3 Tags?Nevermind. This later issue was human error. I didn’t see the next button. After clicking the next button and then the next button on the next page my tags were imported and associated properly. Thanks for the help.
Forum: Plugins
In reply to: Converting Postmeta Records to WordPress 2.3 Tags?Thanks for the suggestions.
I have hacked the importer for Bunny and did a test run with mixed results. The importer reports that it has imported several tags but I don’t see any of the new tags in the wp_terms table or in the post (I updated the theme using the_tags to show the tags in the post).
Either it didn’t really work or I’m missing about the idea of converting old tags to the new built in format. I DO see tags that I add directly to a post but I don’t see the converted ones. I’d assume the importer would move existing tags to the new structure and add their associations to posts as well. What am I missing?
Forum: Plugins
In reply to: Converting Postmeta Records to WordPress 2.3 Tags?Any helpers? I’m looking to save 2 1/2 years worth of tags here. Any help would be greatly appreciated.
Forum: Plugins
In reply to: Converting Postmeta Records to WordPress 2.3 Tags?PS – Each of the records in the postmeta table stores all tags for a single post seperated by a comma. For example:
meta_key meta_value
————————————————
technorati Chris Baker, Solomon Willcots
technorati Countdown, Opening DayForum: Plugins
In reply to: Getting the Plugin DirectoryOK. I’m an idiot. I can use dirname(__FILE__). I’ve been out of the php game for the last few months and I have to re-learn things that used to be simple to me.
Forum: Plugins
In reply to: Getting Post ID Upon Publishing a Post?Thanks. That did the trick!
Forum: Plugins
In reply to: Getting Post ID Upon Publishing a Post?I get the following error when using your code:
Warning: Missing argument 2 for do_stuff_on_publish() in /home/golddave/public_html/testblog/wp-content/plugins/facebook2.php on line 18
Warning: Cannot modify header information – headers already sent by (output started at /home/golddave/public_html/testblog/wp-content/plugins/facebook2.php:18) in /home/golddave/public_html/testblog/wp-includes/pluggable.php on line 331
The error is on the following line:
function do_stuff_on_publish($post_id,$post) {It doesn’t like it when I pass both $post_id and $post.
Forum: Plugins
In reply to: Redirect after Publishing PostI solved this problem! There were a couple of things wrong with your code. Here’s the code that worked for me.
add_action(‘publish_post’,’redirect’);
function redirect($post_id) {
$permalink = get_permalink($post_id);
$location = “https://www.somesite.com/?url=”.$permalink;
wp_redirect($location);
}Notes:
1 – The action is publish_post (not post_publish)
2 – Pass $post_id to the redirect function instead of $nothing
3 – Run get_permalink on $post_id instead of ($_GET[“posted”])
4 – You concatenated $permalink to the $location improperly. See the difference in the way I did it.Forum: Requests and Feedback
In reply to: Share this link (like Facebook)I created a plugin that adds a “Share In Facebook” link to the end of every post and page. For more information go to https://nothing.golddave.com/?page_id=108
Forum: Plugins
In reply to: Redirect after Publishing PostHave you found an answer to this question?
Forum: Plugins
In reply to: redirect on save_post actionDid you ever get an answer to this question?
Forum: Plugins
In reply to: Redirect on publish_post action hookDid you ever get an answer to this question?
Forum: Plugins
In reply to: Getting Post ID Upon Publishing a Post?Is the action save_post or publish_post? What’s the difference between the two?
Forum: Plugins
In reply to: Using XSL in a Plugin?How would you suggest getting data out of XML other than plain PHP?