The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
1answer
47 views

Publish post when edit post form submitted with enter/return pressed on keyboard

How do you publish posts when the post edit form is submitted with the enter/return key on the keyboard? By default WordPress saves the post in draft status. To provide some background, I have an ...
2
votes
1answer
251 views

Scheduled Posts and wp-cron - Why don't scheduled posts publish if too old?

I notice that the documentation for wp_schedule_single_event mentions the following:- The action will fire off when someone visits your WordPress site, if the schedule time has passed. However ...
1
vote
1answer
30 views

WordPress Front end Form - Enable to Submit PHP Codes

I just create a front end form to submit posts for public persons. It works fine. I need to allow to submit PHP codes (because it is PHP tutorial site) via that form. I need to make sure it not ...
1
vote
1answer
34 views

Does blocking xmlrpc.php affect pinging update services like pingomatic

Because there are a lot of attacks lately on xmlrpc.php, I want to block access to this file or disable it. I am aware some remote updating functions won't work (like the mobile app) but that doesn't ...
1
vote
1answer
117 views

Custom save button shows 'Are you sure you want to…' dialog

I'm looking for a way to replace the submitdiv meta box (publish box) with just one simple save button. By looking at Core I see there's a simple function returning a submit button: ...
1
vote
1answer
264 views

I can't preview post's change once they are published

The preview function works fine when posts are just draft. The url looks like this : http://exemple.domain.com/blog/?p=12&preview=true Then when I pubish my posts, let's say I want to change ...
0
votes
1answer
28 views

Plugin SVN folder structure

I´m used to git, but i am new to svn. Do i need to re-create the svn folder structure (trunk, assets, tags) in my local repo, or are the files automatically "sorted into folders" when i push my plugin ...
0
votes
1answer
30 views

Get content of publish box

is there any way how to safely get content of the publish box? For example via some hook or filter? I wasn't able to find anything. I need to place in in some different place.
0
votes
1answer
40 views

suffix title with “EXPIRED” when scheduled post has reached it's published date

I'm scheduling and displaying all my posts in the future. I'd like to somehow add some text after the post title when the publish date is reached. In effect the post will expire at the time of the ...
0
votes
1answer
34 views

Manage multiple wordpress installs (Best Practice)

Our company has multiple blogging platforms on which some of our people post on. The list of platforms keeps on growing and so keeping everything up to date can be rather bothersome. So we were ...
0
votes
1answer
27 views

Publish post and create additional posts with same content

I'm building a site which allows authors to create a custom post type, and optionally elect to create X amount of additional posts with the same content. In this case all the content is meta values. ...
0
votes
1answer
65 views

display wordpress user who published a pending post of another user

I have a custom post type, when I view my posts of this type in the dashboard I see: Title Author Date Added as well as a few more I have added My question is how can I display (like the author ...
0
votes
1answer
61 views

Publish button inside custom field group

Is it possible to move the publish button out of the publish metabox, completely remove the metabox and then put the publish button inside the custom field group? Ask if you need more information, I ...
0
votes
1answer
103 views

Publishing VS2010 Web Solution to WordPress

I am wondering if it's possible to publish a website that I have created onto WordPress? If so, how? The site was created using VS2010. I've done some searching online, and all I've came up with are ...
0
votes
1answer
24 views

Firing page_publish where page is child page

I'm having difficulty getting a function to fire when publishing a new page. I'd like it to fire when a new page is being published or edited but ONLY when that page has a parent. Here's what I've ...
0
votes
1answer
87 views

How can add custom commands in post-new.php in wordpress

I am new here. I have a php code that create an html file and upload it inside a folder. How can i add my custom php code inside post-new.php so when the post is published to do this... Also i need ...
0
votes
1answer
70 views

How to Test a Blog Post for Update vs. Publish Status — Unique

I want to perform an action when a blog post gets published for the first time only. I do not want to take action on any subsequent update. I wrote a plug-in to do this. However, it runs the function ...
0
votes
1answer
132 views

Get publish post link?

Is there a way I can call a link so when clicked it publishes the post via the ID I provide? I have get_delete_post_link( $postID ) set fine, and would like to do the same to make a draft go to ...
0
votes
1answer
249 views

Updating User Meta from Custom Post Field Upon Publish Not Working

I'm trying to get the user_meta to be updated based on the custom post field type. However the information won't transfer if the new post is published by a user through a frontend form. Currently it ...
1
vote
0answers
16 views

save imported posts as drafts

i m trying to import data into as my posts using wp all import and use add_action(save_post,myfunc) to run a function to update some fields all's good so far...but instead of publishing them all at ...
1
vote
0answers
128 views

publish_post conflicts with save_post

my plugin has a save_post hook used to save the custom fields. now I add a publish_slider hook used to change a checkbox's status(slider is a custom post type). but it doesn't work properly. the ...
1
vote
0answers
113 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: $...
1
vote
0answers
46 views

Controlled publishing in Wordpress

We are currently rebuilding our corporate website and I'm looking for a way to control the publishing of pages. The flow to create or amend pages would be something like this: 1) New page is built or ...
1
vote
0answers
102 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 ...
1
vote
0answers
142 views

redirect deleted / drafted pages

A client asked me to unpublished a page, which I did. However, I kept it as a draft, just in case they wanted to republish at a future date. My issue is that anyone with this link will hit a 404 page,...
0
votes
0answers
11 views

How to add a column to publish a post for the Posts page of Administration section?

I know that how to add a column to post page of administration section and display something like a custom filed. But now I want to add a publish button if the post status is draft. How to add it?
0
votes
0answers
52 views

Reload specific divs after login

My problem is the following. I've a form which I want my guests users to fill out before completingit. So before the last step I place a sliding down jquery/ajax form for login/register to show the "...
0
votes
0answers
14 views

Post Notification Function triggering on wrong custom post type

I have a function that triggers an email when a post (any CPT too) goes from draft to publish. The post types I want to use this function for are normal posts and my 'recipe' CPT. When I publish a ...
0
votes
0answers
17 views

Custom Post only works with post_type=custom-name

I setup a custom post type but for some reason, when I try and publish a page under it, the home page loads - which tells me it's not finding it. Below i my init function: function campaign_init() { ...
0
votes
0answers
43 views

Schedule to change all currently draft posts to publish

I am looking for a simple way to switch all draft posts to publish utilizing wp_schedule_event. Any ideas? Not a noob to WP, but I am a noob to working with wp_schedule_event. I would like for this ...
0
votes
0answers
20 views

WP-Automatic to run publish hooks

Maybe there is someone who could help me with this plugin I use. I need it to run publish hooks, so plugin WP to buffer would work. So now WP-Automatic, publishes content, but WP to Buffer doesn't ...
0
votes
0answers
51 views

Prevent scheduled post being published if date/time is past current date/time

I'm looking for a function at prevents a scheduled post being published/updated (with a popup warning or text next to the publish button) if the post's date/time is equal to or less than the current ...
0
votes
0answers
35 views

Changing post status with js

I'm having issues grabbing some actions inside a navigation menu.. So it's going like this(for the publish button) HTML <a href="javascript:updatepost()" class="menu-item fa fa-facebook">Save&...
0
votes
0answers
105 views

Updated to WP 4.3.1 and now it won't let me publish or update user info

WordPress updated to 4.3.1 and now I can't publish. Every time I hit the publish button, the screen just takes me to the "posts" page in the dashboard? Also, if I try and manually add a new user, and ...
0
votes
0answers
46 views

How do I create a form for users to post on the front end?

So basically I have a music theme that allows me to upload music as a post. I want to use the same information on the backend that is in a php file, for the users on the front end, how do I do this? I'...
0
votes
0answers
16 views

Published Status is not showing

I have a problem with wordpress. I am the administrator. When I create a post or page, it shows only draft or pending for review. I switched to default theme and deactivated all plugins but it didn't ...
0
votes
0answers
18 views

Unable to alter page status

After upgrading to 4.3 all of a sudden we find ourselves unable to alter the post or page status, visibility, and previewing now opens an editor window in a new tab. Repairing the database and ...
0
votes
0answers
56 views

making custom post publish/update button

I'm here with a issue regarding my plugin... I've added a menu that should serve as a floating quick-action menu.. For example i would like that if you click the save button it will save the current ...
0
votes
0answers
61 views

get publish / move to trash post URL

I'm having some issues finding the URL's for the publish/update and move to trash buttons. I have something like this : <a href="#" class="menuu-item"> <i class="fa fa-trash-o"></i&...
0
votes
0answers
16 views

Countdown Timer to Publish Draft

I am attempting to create a way for specific draft posts to be published after a 36-hour countdown. Basically, the site allows post submissions which are voted on, and the winning post gets ...
0
votes
0answers
50 views

Hook on Publishing a Post Doesn't Fire Correctly (or so I think)

Currently, I'm trying to send out a Push Notification to iPhone every time a blog post is published on my WordPress website. I am using a PHP script to send out the push notification (which works with ...
0
votes
0answers
35 views

How can I get taxonomy terms and custom field values of a newly created post

I created a system where people can post a CPT via a frontend form. Now, a mail has to be sent out to inform about this CPT. I tried this approach, which works, but I cannot get to the custom field ...
0
votes
0answers
368 views

My page won't publish

I hit 'publish' on a page a few days ago, and it is still not appearing on the website. Can you please help me fix this? Thank you, Sarah
0
votes
0answers
117 views

Send Custom Post Notification to Followers

I am trying to modify the function below (which works great for me ) to notify author followers that the author has published a new post, but I seem to be going round in circles. function ...
0
votes
0answers
72 views

Wordpress Author Posts Review After Every Change In The Same Wordpress Post

guys pardon my english, I am new to wordpress & I have been trying to set up a wordpress website for product reviews where new users will submit their reviews for the product/products. New user ...
0
votes
0answers
24 views

Get taxonomy on publish

I'm not seeing exactly what I'm looking for, so forgive the potential repetitive question. On publish_post, I'd like to check the current post's taxonomies and do something with them. However, the ...
0
votes
0answers
53 views

problem with blank page

i have a real big problem with my wordpress website functions.php when i put the following code to achive post view and thumbnail. i'm getting the blank page error which when i publish or update a ...
0
votes
0answers
50 views

publish posts immediately when updating

i'm looking for a way (maybe a plugin) to have a choice of just updating an already published post, and updating and republishing it with a current date and time basically, two options when editing: ...
0
votes
0answers
86 views

Adding a Custom 'Now' button under 'Published on' header to return current date and time

I want to add a new 'Now' button under the 'Published on' header so as to return the current date and time to the post update time. This would help people who want to update their post with a recent ...
0
votes
0answers
53 views

Contributors can still publish content after user downgrade

I'm trying to slowly hand over WordPress access to other site users but when I downgrade their user type from "Author" to "Contributor," I'm finding that WordPress isn't restricting their respective ...