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

mysql

SQL query to remove first image in all posts

SQL query to remove first image in all posts

Categories posts Tags captions, images, mysql, posts, sql

How to count post meta key values for all posts in database

You have a structural problem with your data. Serialized data in the database is terrible if you need to search over pieces of that serialized data. There is no reliable, efficient, and certainly no easy, SQL query to search over serialized data. “serialization” is a PHP mechanism. It isn’t SQL. To the database that is … Read more

Categories wp-query Tags mysql, post-meta, wp-query

Splash pages on a high traffic site

Splash pages on a high traffic site

Categories PHP Tags cache, mysql, php, plugin-w3-total-cache

How to make an sql query to exclude everything but custom taxonomy terms in table wp_terms?

If you take a look at get_terms() documentation it accepts search argument, which will perform LIKE match against term name and slug.

Categories custom-taxonomy Tags custom-taxonomy, mysql, theme-development, wpdb

retrieve wordpress post-meta using php not wordpress functions

The reverse mechanism should work. I assume you are trying the get post metadata with the post row. $resultat = mysqli_query($con,”SELECT * FROM wp_postmeta LEFT JOIN wp_post ON wp_postmeta.post_id = wp_post.ID WHERE wp_post.post_type=”shop_order””); However, there will be a lots of duplication. If one post have 100 metadata, you are also getting the post row 100 … Read more

Categories PHP Tags mysql, php, post-meta

Get a list of the last posts grouped by author and filtered by category

Get a list of the last posts grouped by author and filtered by category

Categories wp-query Tags mysql, query, wp-query

Slow WordPress admin panel with a total query time of 1664ms

What host service are you using? I had the same issue using Dreamhost, where you can adjust the memory limit for the server you are using on the hosts panel. Doing this solved the issue for us. Also, a possible issue could be your SQL server, switching to another SQL server may resolve your issue. … Read more

Categories plugins Tags mysql, plugins

How to connect database table to each registered wordpress user.

How to connect database table to each registered wordpress user.

Categories PHP Tags database, mysql, php, user-roles, users

Custom MySQL Query for Post and Post Meta

You have to use JOIN for that. Try it like this: $wpdb->get_results(“SELECT tags.*, $wpdb->posts.*, $wpdb->postmeta.* FROM tags INNER JOIN $wpdb->posts ON tags.charity_id = $wpdb->posts.ID INNER JOIN $wpdb->postmeta ON tags.charity_id = $wpdb->postmeta.post_id WHERE tags.charity_id = $charity_id” );

Categories query Tags mysql, post-meta, query

How to change the publishing date of each posts?

If you need to modify the publish date for hundreds of posts then your best bet without a plugin or homemade solution is through a MySQL query.

Categories posts Tags admin, database, mysql, posts, wp-admin
Older posts
Newer posts
← Previous Page1 … Page18 Page19 Page20 … Page207 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