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

Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)

pre_get_posts is an action hook used for modifying the arguments passed to the WP_Query class, and if you’re filtering the posts in the list table at wp-admin/edit.php, then yes, you would use that hook. However, since you’re filtering the terms in the list table at wp-admin/edit-tags.php, then the hook that you should have used is … Read more

Categories custom-taxonomy Tags custom-taxonomy, meta-query, post-meta, pre-get-posts, sort

A better way of getting draft posts that has a particular post meta using get_posts function

You can use the post meta arguments that get_posts function already supports. So, there is no need to use get_post_meta function in a PHP loop. For your use case, post meta related arguments can be used in one of the two possible ways: Either using meta_key, meta_value, meta_compare arguments; Or, using the meta_query argument which … Read more

Categories plugin-development Tags get-posts, plugin-development, post-meta

WP Query Args – search by meta_key or title

WP Query Args – search by meta_key or title

Categories custom-field Tags custom-field, meta-query, meta-value, post-meta, title

How to add new Metadata options (Date, Author, etc.) for Posts?

How to add new Metadata options (Date, Author, etc.) for Posts?

Categories custom-field Tags custom-field, metabox, post-meta

save all acf options in one meta_value [closed]

save all acf options in one meta_value [closed]

Categories custom-field Tags advanced-custom-fields, custom-field, post-meta

acf_form() – “On Update” action [closed]

acf_form() – “On Update” action [closed]

Categories woocommerce-offtopic Tags advanced-custom-fields, custom-field, front-end, post-meta, woocommerce-offtopic

After a while attachment meta data is missing “sizes” data

After a while attachment meta data is missing “sizes” data

Categories theme-development Tags core, post-meta, theme-development

if condition from post_meta not working in save_post

if condition from post_meta not working in save_post

Categories post-meta Tags post-meta, save-post

How do I get a function to work in single.php

How do I get a function to work in single.php

Categories PHP Tags functions, get-the-id, php, post-meta, posts

how to add meta for order in woocommerce

by this action can add extra meta to order add_action(‘woocommerce_checkout_update_order_meta’,function( $order_id, $posted ){ update_post_meta( $order_id, ‘my_custom_meta_key’, ‘my data’ ); } , 10, 2); $order_id is the id of the order, which is stored as a custom post type $posted is all the data from $_POST

Categories plugins Tags plugins, post-meta, woocommerce-offtopic
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page204 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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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