The publish tag has no wiki summary.
2
votes
1answer
780 views
Check before publishing, if already exist post with current custom field value
I have a custom post type with only 3 custom fields in it.
$post_types = get_post_meta($post->ID,'post_types',true);
$post_taxonomies = get_post_meta($post->ID,'post_taxonomies',true);
...
3
votes
1answer
1k views
How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
I have a custom post type (called contacts).
Since this post type is not working like a post, I don't want to show SAVE DRAFT, PREVIEW, Status, Visibility or Publish Date.
The only options I want to ...
1
vote
2answers
600 views
How to trap “Publish” button to check for meta box validation?
I'm trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the Publish button - except I can't find it.
How do I ...
4
votes
1answer
530 views
Prevent publishing the post before setting a featured image?
As the title says , I want a plugin/function to prevent/inform the user when he tries to publish the post without setting the featured image.
ANY HELP ???
2
votes
1answer
789 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 ...
3
votes
2answers
462 views
WordPress prompt checklist before publish?
Does anyone have a suggested plugin that does the following:
when a user hits publish on a post for the first time, it should have a popup, notice, or alert that asks the following:
Do you have a ...
3
votes
2answers
512 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
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
932 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
1answer
734 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 ...
2
votes
1answer
273 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 ...
1
vote
1answer
599 views
Modify front-end delete button to publish pending posts
I've found this helpful snippet to make a delete post link on the front-end:
<?php if (current_user_can('edit_post', $post->ID))
echo "<a href='" . ...
0
votes
1answer
238 views
run script on publish
I am trying to run a script when a user publishes / updates a post.
I am using the filter: wp_insert_post_data
The problem I am having is the script is a php file outside of WordPress but on the ...
9
votes
4answers
182 views
How can I time the publishing of a page or post?
Sometimes it would be nice to be able to set a draft to be published when I'm not in front of the keyboard. Is this possible? If so, how?
2
votes
2answers
651 views
How can I set a draft page as parent without publishing?
Anyone know a way round this?
http://wordpress.org/support/topic/set-draft-page-as-parent
I can't risk publishing as a public-facing system updates periodically from the same install.
0
votes
2answers
506 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 ...
0
votes
2answers
757 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 ...
