Tagged Questions
0
votes
2answers
27 views
Detect Post Type when publish_post is ran
I currently have WordPress build an XML Sitemap everytime a POST or PAGE is PUBLISHED by using this Action...
add_action("publish_post", "create_news_sitemap");
I am not doing the same process but ...
3
votes
1answer
48 views
How to add a “publish” link to the quick actions
I'm trying to add a "Publish" link by the quick actions:
but I'm not exactly sure of how implement it.
Here's what I've got so far:
add_filter('post_row_actions', function ( $actions )
{
...
1
vote
0answers
43 views
Copy post to separate database with “add_action(…)”
I'm basically trying to have a copy of a post be sent to another database's table when it's published. I've gotten it to add a new row in the new table, with my own static arguments, but I'm not sure ...
0
votes
2answers
554 views
Do action on publish or update?
Is there a way to only do a section of code on a template if the post has just been published or updated?
What do I need to wrap around that code?
UPDATE:
I need to check if any of my custom-post ...
-1
votes
1answer
69 views
Action while post is being published
I modified the wordpress admin with a plugin I wrote, and my last problem is that there's no action anymore while the post is being updated or published in the admin. I looked around for a function or ...
2
votes
3answers
440 views
Add javascript when post is published
I am trying to add javascript when a post has been published so that it's more noticable for my user but I can't figure out what to use.
I tryed with publish_post and save_post, but it doesn't work ...
0
votes
1answer
36 views
How to write a new file when new post has been published in Wordpress
I having a problam with my wordpress plugin. The plugin does whenever new post has been published, it will automaticly create a new file with that post content.
this is my code
function ...
0
votes
1answer
36 views
featuring old articles without messing up with the archive
This is all about featuring content in WP.
Say, you got 1000's of posts that you accumulated over the years and each has their own original ( and true ) post dates.
And now you want to feature them ...
2
votes
1answer
989 views
How to limit user to publish post per day and per role?
I would like to know is there any way/Plugin to limit the user published post (in a given time span) by his role?
Like this:
Role A -> 1 post per day and 30 post total.
Role B -> 10 post per ...
2
votes
3answers
1k views
WordPress plugin to publish to multiple remote WordPress blogs
I have a WordPress (.org) blog (let's call it blog1) that is used by many authors, who may create, edit and publish posts (on blog1).
Each author has her/his own WordPress blogs, hosted elsewhere. ...
3
votes
1answer
900 views
Post publish only hook?
Is there any hook which is fired only when the post is "published" for the first time.
I dont want to execute my code when the post is "updated" or when its status is set to "not-published" and then ...
2
votes
1answer
281 views
In what sequence are the hooks fired when a post is “published”?
I would be grateful if someone could point out a link. I understand this may have a very lengthy answer but I searched and couldn't find any resource.
Alternatively, it would also be nice if someone ...
0
votes
1answer
163 views
Display password protected posts to logged in users
In a WPMU & BuddyPress installation, I want to directly show the password protected posts to logged in users without asking them for posts passwords... and still be accessible to guests ...
1
vote
2answers
103 views
Print a message if excerpt is empty after posts have been publish/update!
I don't think I can make the excerpt required, but if anyone knows a workaround please share.
At least I want to print a message if excerpt is empty after posts have been publish/update, maybe a red ...
1
vote
2answers
426 views
Elegant way to include only published posts with get_objects_in_term()?
The obvious way is to iterate through the resulting array of IDs, get_post for each and test against post_status == 'publish'. But I wonder whether this could cause memory issues since get_post will ...
0
votes
3answers
888 views
Remove Permalink On Post Page [closed]
How can i remove the permalink that appears when you publish a post becuase i am listing profiles on a page and it does not have a single.php
"Permalink: http://theurl/blalbal"
thanks
3
votes
2answers
641 views
Restrict the Number of Posts an Author can Publish (over time)?
I'm thinking maybe limit the number of posts a user can make in a given period of time. (Say a user can only publish 1 post per 5 minutes?)
Is there such a plugin?
2
votes
1answer
799 views
Publish pending article from front end with a button?
Is it possible to take the blue publish button in back end of the wordpress and place it in the frontend near the post in my index.php. I need a way to publish the pending article without going to ...
3
votes
2answers
521 views
How can I make it so the Add New Post page has Visibility set to Private by default?
I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default:
Status: Draft
Visibility: **Private**
Publish immediately
[Publish]
...as opposed ...
0
votes
2answers
768 views
Stop wordpress from creating empty/null entries
Fiddling around with a custom post type which is quite heavy modified.
Started doing some testing to see if I had broken some function, and realized that wordpress doesn't have a function that checks ...
0
votes
2answers
97 views
I want to print a message in post “ After one month from publish date”
I need to showing message in post , but after one month from publish date.
I try to make it before ask you, but I can't
this is my code
$publish_date = $post->post_date_gmt;
...
0
votes
1answer
184 views
How do I manage my users post before publish?
In my website , I allow to the new user to write posts.
but the problem is when the user write post. the state of post is publish. it is appear in front page.
I want to read it before the publish , ...
