ajaswa
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Bird Feeder] Very HappyI would love to see your modification. I’m glad you like it.
Forum: Plugins
In reply to: [Plugin: Bird Feeder] Press This not tweeting?After figuring out what “press this” was and reviewing the method that I was checking to see if the post was a page, I have since updated the method and Bird Feeder now works with “press this” as of ver 1.2.1
Forum: Plugins
In reply to: [Plugin: Bird Feeder] Press This not tweeting?What is the “press this” browser link?
Currently Bird Feeder tweets if the following conditions are met:
If a post is new and gets published.
If a post is a draft and gets published.
If a post is set to a future date and then on that date gets published. If a post is pending and gets published.
And the post must not be a page.Forum: Plugins
In reply to: publish_post without trigger on editYou are right the docs really suck on this subject. I’ve only figured this out by trial and error.
To cover all 3 of your cases you’ll probably want:
add_action(‘future_to_publish’,’function_name’);
add_action(‘new_to_publish’,’function_name’);
add_action(‘draft_to_publish’,’function_name’);Something else about this method is from what I can tell it applies to both posts and pages.
I’ve found publish_post to be more annoying then helpful. There really ought to be a hook for just new publishes and one for edits.Forum: Plugins
In reply to: quickpress hooksused:
new_to_publish
To resolve the issue I was having. This state WAS NOT documented in the WP docs. LAME.
Forum: Plugins
In reply to: publish_post without trigger on edit@jeckman no you’ll probably want something like this:
add_action('future_to_publish', 'function_name');
Forum: Plugins
In reply to: [Plugin: Bird Feeder] Great!Thanks Robert! If you have any issues with it let me know.
Forum: Fixing WordPress
In reply to: comments_popup_link() doesn’t render link on Pages.To get this to work open up comment-template.php find the comment_popup_link function and then look for
if ( is_single() || is_page() )
replace it with
if ( is_single() )
This will allow you to use the comment_popup_link() function on “pages”. One more thing I had to hack to get wordpress to work as a decent CMS…