Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

posts

Publish pending article from front end with a button?

August 3, 2022August 2, 2022 by Magenaut

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 dashboard and only admin can see the publish button?

Categories Q&A, Wordpress Tags front-end, php, posts, publish Leave a comment

Delete posts from a post type automatically via Cron

August 3, 2022August 2, 2022 by Magenaut

how can I use Cron to delete posts of a certain post type once they reach a certain limit, like keep maximum 50 posts?

Categories Q&A, Wordpress Tags cron, posts Leave a comment

Post publish only hook?

August 3, 2022August 2, 2022 by Magenaut

Is there any hook which is fired only when the post is “published” for the first time.

Categories Q&A, Wordpress Tags posts, publish Leave a comment

add action only on post publish – not update

August 3, 2022August 2, 2022 by Magenaut

I have action which adds meta field with value on post publish. Problem is that when I update post meta field is reset to default value.

Categories Q&A, Wordpress Tags actions, posts, publish Leave a comment

How to disable edit post option after period of time?

August 3, 2022August 2, 2022 by Magenaut

How to disable edit post option for post one day after publication?

Categories Q&A, Wordpress Tags posts Leave a comment

Disallow Same Post Title

August 3, 2022August 2, 2022 by Magenaut

I am looking for some code where member can’t use the same title as another post already having or used.

Categories Q&A, Wordpress Tags posts, title Leave a comment

Prevent duplicate posts in wp_insert_post using custom fields

August 3, 2022August 2, 2022 by Magenaut

My source links are something linke this :

Categories Q&A, Wordpress Tags custom-field, customization, posts, wp-insert-post Leave a comment

Apply the_title() filter in post & page title, but not in menu title

August 3, 2022August 2, 2022 by Magenaut

I use the following code to change the title of WordPress posts and pages. But it changes nav menu item titles too, which I want to avoid.

Categories Q&A, Wordpress Tags filters, menus, pages, posts, title Leave a comment

How to Create Editable Blocks of Text for the Homepage?

August 3, 2022August 2, 2022 by Magenaut

I’m making a site based on WordPress. It’s not going to seem a blog or WP. Just a website. So WP acts like backend where the client can edit the text blocks.

Categories Q&A, Wordpress Tags posts, static-website, text Leave a comment

using wp_update_post on save_post

August 3, 2022August 2, 2022 by Magenaut

im trying to update a posts date (-1 year), when you hit update. but it causes an infinite loop.

Categories Q&A, Wordpress Tags customization, date, posts Leave a comment
Older posts
Newer posts
← Previous Page1 … Page15 Page16 Page17 … Page22 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress