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

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

wordpress query making site very slow

I have made some changes: SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id INNER JOIN wp_icl_translations t ON wp_posts.ID = t.element_id WHERE 1=1 AND t.element_type = CONCAT(‘post_’, wp_posts.post_type) AND wp_postmeta.meta_key = ‘post_views_count’ AND wp_posts.post_type=”post” AND wp_posts.post_status=”publish” AND ( (t.language_code=”fr” AND wp_posts.post_type IN (‘post’,’page’,’attachment’,’grille’,’podcast’,’equipe’)) OR wp_posts.post_type NOT IN (‘post’,’page’,’attachment’,’grille’,’podcast’,’equipe’) ) GROUP BY wp_posts.ID … Read more

Categories post-meta Tags plugin-wpml, post-meta

Site ‘Categories’: save an admin global setting with post metadata [closed]

Site Categories is only a tool for categorizing blogs and together with Sitewide Tags allows for copying sub-blog posts to a top level blog of a certain category and list out posts from certain blog categories. However, no categorizing data is copied with the posts, or linked to the posts via metadata – except the … Read more

Categories posts Tags categories, multisite, post-meta, posts

CPT posts in drop downed in meta box on page doesn’t return post ID

Forgive me if I am misunderstanding the question but… So, when I get get_post_meta( $get_post_ID()); … you already have the post ID via $get_post_ID() (which is a BuddyPress function I believe) do you not? If so, you are making this far more complicated than it needs to be. get_post_meta() is only returning the metadata. Given … Read more

Categories metabox Tags id, metabox, post-meta

Post Meta for Custom Post Types

1- Yes they are common to all post types but it can be changed for each and every post, and yes meta field will be the same for companies too. 2- Whenever you add a new post, there is an option of adding custom field box, by default it is disabled (You can enable it … Read more

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

My meta box don’t want to save value

My code works perfectly. The second parameter of the value is a string $value = get_post_meta($post->ID, ‘_product_price_value_key’, true);

Categories metabox Tags metabox, post-meta

Changing to different post type maintains the redirection?

Changing to different post type maintains the redirection?

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

Update post meta Rest Api

Update post meta Rest Api

Categories plugins Tags plugins, post-meta, rest-api
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … 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