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 to disable Yoast meta description for all pages

This should do the job: <?php /** Plugin Name: wpse425362 Description: Site specific code changes for example.com */ if (!defined(‘ABSPATH’)) exit; // Exit if accessed directly /** * Removes the meta description generated by Yoast * * @param array $presenters the registered presenters. * * @return array the remaining presenters. */ function wpse425362_remove_description( $presenters ) … Read more

Categories plugins Tags plugin-wp-seo-yoast, plugins, post-meta

I read the postmeta and update it without changing it, then move on to the next record

I read the postmeta and update it without changing it, then move on to the next record

Categories post-meta Tags post-meta

How can i delete default title tag from wordpress?

You can use this method for functions.php function custom_remove_title_tag() { ob_start(function($buffer) { return preg_replace(‘/<title>.*<\/title>/i’, ”, $buffer); }); } add_action(‘wp_head’, ‘custom_remove_title_tag’, 0); But I recomend to use some plugin for rewrite <title>

Categories post-meta Tags post-meta

CPT meta values intermittently return empty

CPT meta values intermittently return empty

Categories custom-post-types Tags custom-post-types, post-meta

I am having a problem with fetching product data in the Gutenberg block editor

I am having a problem with fetching product data in the Gutenberg block editor

Categories custom-post-types Tags custom-post-types, plugin-development, post-meta, posts, woocommerce-offtopic

Getting author’s nickname as meta value

After review, I would expect your code to work properly: to only save the creating author’s nickname, and not override it later. Here’s some code to try with slight improvements and redundancies (tested): function data_nickname( $post_id, $post, $update ) { // If the post is being updated, bail. if ( $update ) { return; } … Read more

Categories post-meta Tags post-meta, wp-insert-post

Cannot read properties of undefined (reading ‘useEntityProp’)

That script uses lots of WordPress packages, and WP Scripts makes sure it doesn’t put those in the built JS to stop it getting huge. Part of that is it creates a PHP file that just returns an array of all the things. That code however has put [] in the dependencies spot, and tells … Read more

Categories post-meta Tags block-editor, post-meta

getEntityRecords/useEntityRecords: How to use CPT metadata?

Ok, I found the answer myself thanks to Can you filter posts by meta key with the getEntitityRecords selector? Despite my first understanding the >>>query<<< parameters for list posts given in the Reference do >>>not<<< contain the meta. I followed the article and created a query filter for the CPT, i.e. function mycustomposttype_meta_query_filter() { add_filter( … Read more

Categories custom-post-types Tags block-editor, core, custom-post-types, meta-query, post-meta

Update post meta array – add new, single value

I think you’re close. In my code I’ve assumed that the desired customer_email meta looks like this: array( 0 => ‘[email protected]’, 1 => ‘[email protected]’, 2 => ‘[email protected]’, ); What you need to do is add the new email address to the array of existing email addresses, then save the updated array back to the meta … Read more

Categories post-meta Tags meta-value, post-meta

WordPress post meta key and value lookup

Your syntax is correct, if the query isn’t coming up with anything it’d be worth checking for typos. Is that double D in installDDate deliberate? The reason it uses nested arrays is to allow for more than one meta key/value pair in the query, which can be combined with different relations. Each pair would have … Read more

Categories posts Tags post-meta, posts
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page203 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