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

Get result from Custom Field in Custom Post type

Ok, I got it work. Since the checkbox for the custom fields stores entires as a comma seperated value, I needed to explode the delimiter and then perfom another loop to parse the information. Then I created two separate arguments to split the data and call it back within the echo. Here’s my final output … Read more

Categories custom-post-types Tags custom-field, custom-post-types, loop

How to query post ids liked by the Author

Your query would be something like: $post_ids = $wpdb->get_col( “SELECT DISTINCT post_id FROM {$wpdb->prefix}wti_like_post WHERE user_id = {$author->ID}” ); Then you can pass that array of post IDs as the post__in argument of WP_Query: $args = array( ‘posts_per_page’ => -1, ‘post__in’ => $post_ids );

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

WordPress sites translate dynamically generated Homepages

The plugin you have installed hooks into the_content() function which is called within the post loop on your posts – this is why it works there and not the text only widgets. You may find a PHP widget will work OR you can use PHP to run your shortcode using the do_shortcode function. PHP widget … Read more

Categories templates Tags language, templates

add_rewrite_rule not working

add_rewrite_rule not working

Categories plugin-development Tags api, plugin-development, rewrite-rules, url-rewriting

Clarify: Enqueueing scripts within shortcode only loads in footer?

Clarify: Enqueueing scripts within shortcode only loads in footer?

Categories shortcode Tags shortcode, wp-enqueue-script

Sort post by category using HTML Select tag

Sort post by category using HTML Select tag

Categories posts Tags categories, posts, query

how to exclude admin page from add_rewrite_rule in wordpress

Try using this: if (!is_admin()) { add_rewrite_rule(‘([A-Za-z0-9])/([A-Za-z0-9])’, ‘index.php/product?subcategory=$1&product=$2’, ‘top’); add_rewrite_rule(‘([A-Za-z0-9])’, ‘index.php/categories/?cat=$1’, ‘top’); }

Categories PHP Tags mod-rewrite, php, rewrite-rules

Unable to show messages using ‘admin_notices’

Unable to show messages using ‘admin_notices’

Categories customization Tags ajax, customization, jquery-ui

Making Site A Use Site B’s wp-content Folder

Making Site A Use Site B’s wp-content Folder

Categories uploads Tags constants, core, hooks, sync, uploads

WordPress Custom Permalink Structure with Custom Post Type and Taxonomies

WordPress Custom Permalink Structure with Custom Post Type and Taxonomies

Categories custom-post-types Tags custom-post-types, custom-taxonomy, permalinks
Older posts
Newer posts
← Previous Page1 … Page1,768 Page1,769 Page1,770 … Page13,916 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