Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

post-meta

How do I delete element from a serialized array upon deletion of a post?

Don’t focus on serialized aspect of it. Retrieve data using appropriate API function. Modify the data. Save data back. WordPress APIs take care of serialization transparently, no need to mess with it directly.

Categories post-meta Tags post-meta

How to update the ‘modified_time’ of a post ONLY when content is changed?

I guess, there is no exact way of retrieving the time only when the post’s content is updated until you change the core functionality of wordpress and that might lead to some other issues. But here is a workaround I would like to propose here. You can retrieve the time/date only when content is updated … Read more

Categories post-meta Tags date, post-meta, revisions

How can I prevent the post_modified column in wp_posts from being updated?

Add the following to functions.php when you are meddling and remove it after, or comment it out: function no_mod_wpse_136092($data,$postarr){ if (empty($postarr[‘ID’])) return $data; $old = get_post($postarr[‘ID’]); if (!empty($old)) { $data[‘post_modified’] = $old->post_modified; $data[‘post_modified_gmt’] = $old->post_modified_gmt; } return $data; } add_action(‘wp_insert_post_data’,’no_mod_wpse_136092′,10,2);

Categories post-meta Tags date, post-meta

Getting meta content from get_next_post & get_previous_post

Getting meta content from get_next_post & get_previous_post

Categories post-meta Tags post-meta, previous

Posts with no meta field do not appear when sorting by meta field

I believe if you specify ‘meta_key’ without a ‘meta_value’ it checks merely for the existence of the meta_key. I haven’t tried this but you might be able to specify a ‘meta_compare’ of ‘!=’ and some random value for ‘meta_value’ that you know would never actually be set as the value. $query->set( ‘meta_key’, ‘fieldA’ ); $query->set( … Read more

Categories post-meta Tags post-meta, sort

update_post_meta() not working in bulk option

update_post_meta() not working in bulk option

Categories post-meta Tags bulk, post-meta

how to echo/display the custom field value in specific custom field name?

how to echo/display the custom field value in specific custom field name?

Categories post-meta Tags get-the-id, post-meta

Re-order posts inside tax query

Re-order posts inside tax query

Categories post-meta Tags order, post-meta, pre-get-posts

wp_schedule_event not working

wp_schedule_event not working

Categories post-meta Tags post-meta

Twenty Twelve entry meta data – change and move

If you don’t want to use twentytwelve_entry_meta(); in the post loops that calls the date, category and adds that “This post was posted in” text itself, then you’ll have to remove it and re-write from scratch. 1A: Comments and Number displayed, refer to the comments_number function: http://codex.wordpress.org/Function_Reference/comments_number <?php comments_number( ‘No Comments’, ‘Comments: 1’, ‘Comments: %’ … Read more

Categories post-meta Tags post-meta, theme-twenty-twelve
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page51 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress