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

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

get_post_meta() returns nothing in save_post, publish_post, wp_after_insert_post

get_post_meta() returns nothing in save_post, publish_post, wp_after_insert_post

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

How to show wordpress post in the site based on custom field value?

This worked for me as long as it’s run only on the appropriate query. The key is MySQL’s FIELD() function, which lets you specify an arbitrary ordering. add_action( ‘pre_get_posts’, ‘add_match_times_to_query’ ); function add_match_times_to_query( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( ‘meta_query’, array( ‘match_time’ => array( ‘key’ => ‘match_time’, ‘compare’ => ‘EXISTS’, … Read more

Categories post-meta Tags post-meta

Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)

Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)

Categories custom-field Tags custom-field, post-meta, wpdb
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … 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