Id like to prevent this. But i don’t think disabling button after clicking would be wise because typically a user will try to click publish button without filling in all forms, resulting in a “required” message.. So if i can disable after form is actually successfully submitted, that would be more ideal.
Here is my current code:
<div class=”large-12 columns”>
<?php wp_nonce_field(‘post_nonce’, ‘post_nonce_field’); ?>
<input type=”hidden” name=”submitted” id=”submitted” value=”true” />
<button class=”button expanded” type=”submit” name=”submit”><?php esc_html_e(“Publish Now”, ‘betube’) ?></button>
</div><!–Publish Button–>
Thanks in advance!
]]>It is started 2 years ago when I noticed that every time I was publishing one post this post was, in reality, published 4 times with of course the same title, same content everything the same but the link different. Example. www.bombagiu.it/bug and www.bombagiu.it/bug-1 …
After a while the bug disappeared I think just updating the Theme or some plugin.
But now when it happens that I update one of these old posts I realize that when I press update WordPress create 298 posts of the same article. It is horrible because then I have to delete and create a redirect.
Do you know if there is a way to solve this issue?
Thanks a lot
Antonio
some pre defined text in editor:
How are you (write your name)? My age is (add here).
something like this. Please help me from where can i do this.
]]>The idea is to edit my markdown files locally and when the remote repository is pushed, the posts will be published automatically. This is interesting when it comes to correcting errors and having the files updated on both sides (local and remote).
For example, I edit an article in local and I send it to my remote repository, then it is automatically published. But I realize that there is an error in the text, then I edit it in local and send another push to the remote repository, automatically updating the post.
Can you think of a way to do it?
For now, I have only found the way to import markdown files but in case of correcting errors, you would have to upload the file again, edit the tags, etc, etc …
thanks!
]]>Trying to get property of non-object
/mnt/storage/stage/www/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter-content.php – 231 – HandleError
public function nodes() {
// Because PHP’s DomDocument doesn’t like HTML5 tags, ignore errors.
$dom = new \DOMDocument();
libxml_use_internal_errors( true );
$dom->loadHTML( ‘<?xml encoding=”utf-8″ ?>’ . $this->content() );
libxml_clear_errors( true );
// Find the first-level nodes of the body tag.
return $dom->getElementsByTagName( ‘body’ )->item( 0 )->childNodes; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
}
While the php ignore errors comment is worrying I believe a simple change might stop this erroring out.
return $dom->getElementsByTagName( ‘body’ )->item( 0 )->childNodes ?? [];
This bug stops the actual insert of post, thus makes the site unworkable.
]]>We are having the following error “The link you followed has expired.” when you click on publish post, this is happening across 2 sites and once the plugin is disabled it works fine.
Thanks
]]>I am able to add info to custom fields on publishing using “add_action(‘publish_post’, ‘add_custom_field_automatically’);” and “add_post_meta($post_ID….” based on tags added to the post so was wondering if I could include some custom text at the end of the post too, but only on publishing?
Thanks is advance
]]>