Skip to main content

Questions tagged [publish]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

ImageMagick on wordpress 6.5.5 for Linux Alma 8 success but which no magick

I am trying to add a Page or an Entry and the message when trying to publish is the following: The publication has failed. The response is not a valid JSON response. I have also published my query ...
euroluar's user avatar
0 votes
0 answers
13 views

Not working Mobile view and Desktop view properly when we searched on website

As we were working on WordPress the problem arose when it did not accept mobile view and desktop view properly Even it was published to check whether it is working or not please tell us how to rectify....
Indian Shades's user avatar
0 votes
0 answers
9 views

When i save or publish a post setting reset wp

When I publish an article this resets several settings: my generatepress theme logo setting new ads created with wp quads and the newsletter form reset I disabled the maximum extension, and I have ...
Zz00's user avatar
  • 1
1 vote
1 answer
42 views

Can't publish custom type posts that don't support title and editor, instead they're saved as draft

I’m developing a plugin that registers custom post types without support for title and editor. I’ve been working on this project for a couple of months now and when I began (WP version 6.3.1), it used ...
user5728578's user avatar
0 votes
1 answer
74 views

Check if a new Wordpress post is successfully published with jQuery

I would like jQuery to click on a button/link after a Wordpress post is successfully published for the first time. Here are CSS selectors for WP publish ID: // Before a post is published: <...
daro2013's user avatar
1 vote
2 answers
71 views

disable the post title field after publishing

Changing the title of the article can be very dangerous for search I'm looking for a way to disable the post title field after publishing for authors and editors Can anyone help me in this regard?
Ali Kiani's user avatar
0 votes
0 answers
23 views

It tells me that I exceeded the maximum number of executions when trying to publish content

I need the code to replace a post to be executed when publishing, it asks me for the ''updateSaved'' function. function actualizacionPost($condicion){ ...
Miguel Angel Salas8's user avatar
0 votes
1 answer
68 views

What's the best way using vanilla js to force confirmation on publish button?

I am trying to force a confirmation in certain cases in the editor screen. I'm using something like this after selecting the publishButton: publishButton.addEventListener('click', function () { ...
user18102663's user avatar
0 votes
1 answer
57 views

Add custom button to the changeset status in the Customizer

I would like to add custom button to changeset_status in the Customizer actions. Any idea how can I do that? Thank you.
Victoria Lievikova's user avatar
0 votes
2 answers
252 views

update asset url on free slider revolution version 6.5.25

I am trying to change the local environment of my wordpress (fireide.local) to a public environment. I have used velvet-blues-update-urls to change the url, I have selected all the options in velvet-...
Jaime Roman's user avatar
5 votes
1 answer
194 views

Bulk post approval and publishing doesn't work

I'm new to WordPress plugin development. I'm trying to develop a simple plugin that creates a sub-menu named Approval under Posts menu and checks if any draft post has the post meta approve set to ...
Karma's user avatar
  • 176
0 votes
2 answers
37 views

when I Try to Create new Post or Page it goes Draft(I can't post Anything)

I have Done Some Debugging is there: 1, Deactivate Plugins 2, Switch Themes 3, Update plugins & themes 4, update the WordPress version 5, in functions.php : function remove_dashboard_widgets() { ...
Jabir Shaikh's user avatar
0 votes
0 answers
32 views

How is it possible to use a very reduced version of WordPress?

My dream would be to code a website just with HTML, CSS and JavaScript, and then connect parts with a very simple CMS. For example, I would have a text area, and just write in HTML something like that:...
Anna_B's user avatar
  • 101
0 votes
2 answers
125 views

Prevent post from being published and show error

I'm trying to prevent a post from being published if it contains certain words using the folowing: function jhnppWord($content) { global $post; $content = $post->post_content; $...
Johan Barnard's user avatar
0 votes
0 answers
22 views

Publish box in CPT remove 'edit' link

Hello I have a custom post and in the Publish Box I would like to remove the timestamp edit link.
jamesnelson82's user avatar
0 votes
1 answer
71 views

Wordpress bulk category select when publishing post

Often I need to attach post to all categories and I have about 200 categories. When I need to select all categories while publishing post , I select categories one by one. How can I add select all ...
Teymur Abbasov's user avatar
0 votes
0 answers
37 views

Is there way to toggle the publish date display?

I am interested in changing our WP dashboard so that I can choose whether an individual Post will include the publish date or not. Is there a way to do it without a plug-in and insert code that maybe ...
bfoley_teamug's user avatar
0 votes
1 answer
331 views

Could we know who published a post on WordPress?

Besides knowing the author, could we know like which user with the Editor role published a post? Is this being tracked in the db?
ratib90486's user avatar
1 vote
1 answer
413 views

count the total number of comments the user has received for his published posts

I want to count the total number of comments the user has received for his published posts. for example show: total comments of your all posts : 47 Is there a way to do this? Can you help me?
mostafa ajdadi's user avatar
0 votes
0 answers
33 views

How does redirect work when publish date changes and date in url changes?

For example I create post at 29 day, publish it. In url there is 29 day. Now if I change publish date to 28, url works with 28 day. But it also works with 29 day, just redirects to 28. I do not get ...
Darius.V's user avatar
  • 101
1 vote
1 answer
57 views

Set post terms on post publish

I am trying to set post terms on the post, when it is puublished I use following code but is doesn't work add_action('pending_to_publish', 'oj_publish_post'); function oj_publish_post($post_id) { $...
user7459842's user avatar
2 votes
1 answer
123 views

How to do conditional publishing?

I am trying to write a plugin that will stop a user from publishing (or updating) a post if a given condition is not met, for example, if the title of the post is already being used in a different ...
David Valenzuela's user avatar
0 votes
1 answer
194 views

post.php AJAX request not being called when publishing post

I am using the transition_post_status to process a post being published. I was getting inconsistent behaviour between two installations of WordPress, and I have tracked this down to the AJAX calls ...
MattRogowski's user avatar
0 votes
2 answers
876 views

Wordpress publish_post hook not getting featured image and meta on first publish, but works on updating title

I've been struggling to find a solution for this and I don't know if it's the Gutenberg editor or if it's the hook publish_post. Hook: function api_method($post_id) { // If this is just a revision,...
msbodetti's user avatar
  • 103
0 votes
1 answer
51 views

I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types) [duplicate]

The code below works perfectly When I create a new post, an email is sent out to the email included in the function. I would like to know how I can send an email when anything is published on the ...
Neha Patel's user avatar
2 votes
1 answer
338 views

How to set a Post's default visibility to 'Private' in Gutenberg?

I am trying to set a Post's default visibility to 'Private' when a user first creates the post. They should then have the ability to manually select 'published' from the sidebar dropdown once they are ...
Bmillerz's user avatar
0 votes
1 answer
1k views

Wordpress doesn't save or publish new posts

This problem started when I wanted to create a new post. I'm using the Elementor editor, so I created a new post, set the title and featured image and then clicked on "Edit with Elementor" ...
R2vale's user avatar
  • 1
0 votes
1 answer
191 views

What is the reason for the new_to_publish hook not working?

this hook should normally be triggered on new post but it doesn't work add_action("new_to_publish", "doSomething", 10,1); function doSomething($post){ global $post; $_SESSION['...
Mehmet Cemil's user avatar
1 vote
0 answers
11 views

Can't schedule post for another time

Very odd thing happening - suddenly, I can't click on the "Edit" link under the Publish options. That is, I can hit "Publish" but if I want to change the publishing date/time or ...
CJ P's user avatar
  • 11
0 votes
1 answer
601 views

Use value from ACF to populate other fields

I am struggling with this problem. I have a group pf ACF fields and a XML file with the corresponding values. What I want is the user to be able to fill one field (with an id) and on the Publish post, ...
marissalianam's user avatar
0 votes
1 answer
915 views

Hook when post is set from published to draft?

Is there an action i can hook into when a post is set from published back to draft? I have tried both transition_post_status and publish_to_draft but they don't seem to work when I set the post back ...
Anton Emery's user avatar
1 vote
0 answers
493 views

Changing wordpress publication date to ACF date and time picker date not working

This might be a long post but I want to explain in detail what I'm trying to do and what I've already done. I'm making custom forms using the advanced custom fields plugin and I need to display these ...
pops0903's user avatar
0 votes
2 answers
173 views

Send email to user when I publish a new post

i want to send email only new post publish in wordpress admin when i pulish anything its sending mail to user how to restric this to only new post added to send mail to user function ...
jykmhar123's user avatar
1 vote
1 answer
1k views

Error trying to publish immediately. Post status = future (Missed schedule error)

We have moved a to new server and now we can’t publish. At least, we can’t publish instantly. Maybe can be useful: we are using Plesk & CloudFlare. When we publish a new post, the post_status ...
Anfuca's user avatar
  • 181
0 votes
1 answer
368 views

Windows-hosted new site shows no preview: "Future home of something quite cool." message is displayed

I added a theme and made a sample home page. What could cause the site to display no previews or even display no changes when published? Note: I did my best to search similar previously-asked ...
Bhavika Khare's user avatar
0 votes
0 answers
87 views

Limiting the Number of User Posts to Their Own Posts

I have set users to only see their own posts. But the total number of articles is still visible. Can we limit it to its own number of articles? How can it be done without plugins? related picture here:...
Mehmet Şar's user avatar
2 votes
0 answers
125 views

Registration and Custom Post Types - How to synchronize information?

I am building a platform where service providers can offer their services to potential customers. Therefore, I have two user roles, one "customer" who can only create an account and read; ...
nelakay's user avatar
  • 21
0 votes
0 answers
15 views

Update main post with same category when creating custom post to update the modified date

I have 2 post type, so i create post on my main post type, then i need to create another post to fill the content to my main post in custom post type. Is there any way to update my main post publish ...
Bayu Fajar Rizki's user avatar
2 votes
1 answer
273 views

HELP: Integrating WP with raw PHP code once published button is hit

Hello guys let me just open up, I am not good in both Wp coding, I will like to integrate my wp site so that once the published/update button is hit, it will automatically import external mp3 file to ...
XATA's user avatar
  • 67
1 vote
1 answer
900 views

Check if checkbox is marked on publish/update post

Updated with working code here: add_action( 'acf/save_post', 'fritlaeg_artikel_3m' ); function fritlaeg_artikel_3m( $post_id ) { if( get_post_meta( $post_id, '...
Jacob Juul Petersen's user avatar
0 votes
1 answer
688 views

My posts are getting to Auto draft when I try to Publish

My posts on my site are getting into auto-draft mode when I try to publish it. So far, I have tried the following: 1. Change the theme. 2. Disable all plugins 3. Disabled widgets using functions.php....
meetpd's user avatar
  • 101
1 vote
1 answer
218 views

Allow Contributor to edit published post and filter by page id

I'd like to give contributors permission to edit only some of their own published pages. I can use the following if I want to allow them to edit all of their published posts. How do I filter it ...
Mohit's user avatar
  • 166
0 votes
1 answer
332 views

Cannot access wp-admin after migration to another place

I've been working in my blog. Yesterday I made all back-ups (files and DB), i´ve changed the wp-config.php with the new user, DB name and password and I publised everything at my actual URL. http://...
Állan Fidelis Toledo's user avatar
1 vote
1 answer
535 views

How to get the Tags on Publish post hook?

Requirement: On the each publish/update post, we need all tags from the post and do some functionality on that. Case 1: Create post, add tags and Publish immediately === WORKS PERFECT === Case 2: ...
Prashant Patil's user avatar
0 votes
0 answers
23 views

Why isn't update_post_meta saving?

I am trying to concatenate 2 custom meta fields into one, and saving it to a new custom meta field. The data of those fields is created using a frontend submit plugin that uses the default WordPress ...
Edegist's user avatar
  • 133
1 vote
1 answer
29 views

Problem With Pages Displaying

I am having a problem with any page other than my uncles home page displaying. The site was recently migrated from one host to another. The pages all show in the WP backend and are all formatted and ...
Michael Wallace's user avatar
0 votes
0 answers
70 views

How to publish a post if condition is met?

I'm trying to have my posts published when wp_posts.ID IN (list). Is it advisable to do it with an event in MySQL/MariaDB? Would it mess up the cache? Is it enough to just do SET posts_status = '...
inside83's user avatar
1 vote
1 answer
51 views

Post Meta Emtpy on Publish Using Transition

I'm trying to use get_post_meta with the following hook, but it's always empty. I adjusted the priority to see if that would help, but no luck. Any ideas? The post meta is definitely in the db after ...
Dario Zadro's user avatar
0 votes
1 answer
269 views

Wordpress get tags in “publish_post” hook

I want to get the selected tags using publish_post hook, while publishing the post. With below code, I can get only those tags which are already saved in the post. this will not work for new tags. ...
Prashant Patil's user avatar
0 votes
1 answer
133 views

Modify Publish Metabox location on CPT

I've been struggling with how to do this properly and have yet to find a solution. I have a CPT with ACF fields. I can't use a front-end form because I'm synchronizing the CPT across several ...
user3311868's user avatar

1
2 3 4 5 6