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

need some assistance with the checkboxes (selecting/deselecting featured posts)

This appears to be a general PHP warning, you’re supplying an incorrect argument in a foreach loop. $_POST[‘list_id’] is expected to be an array or any other (iteratable object), when no checkboxes are checked I assume $_POST[‘list_id’] is completely undefined. $_POST[‘list_id’] = isset( $_POST[‘list_id’] ) ? (array) $_POST[‘list_id’] : array(); Adding this before you iterate … Read more

Categories post-meta Tags post-meta

need to add add user names to the post for later retrieval or removal

Decided going to use comments system to implement this feature.

Categories post-meta Tags post-meta

Compare string with post id in wpdb and do stuff when match is found

This is what I ended up using, turned out I didn’t need to apply the meta value to the child pages since I used another approach. Hopefully it’s useful for someone. $row = $wpdb->get_row(“SELECT * FROM wp_posts WHERE ID =’$post_id'”); $new_order = $order[$page[‘depth’]]; $new_order = $wpdb->escape($new_order); $current_order = $row->menu_order; if($current_order != $new_order) { switch ($new_order) … Read more

Categories post-meta Tags menu-order, post-meta, wpdb

Get a row from a separate table by matching a posts meta_key to a tables ID column

global $wpdb; /* grab meta value, it is assumed you know the post id ($id) in question */ $dot_number = get_post_meta( $id, ‘dot_number’, true ); /* grab all rows with matching value in ‘dot_number’ column */ $matches_query = $wpdb->get_results( “SELECT * FROM ” . $wpdb->prefix . “csadata ” . “WHERE dot_number = ” . $dot_number, … Read more

Categories post-meta Tags get-row, post-meta, wpdb

Editing does not change post_name

Editing does not change post_name

Categories post-meta Tags post-editor, post-meta, title, urls

Add Embed.ly API objects to post_meta on update

Add Embed.ly API objects to post_meta on update

Categories post-meta Tags api, post-meta

Custom RSS Feeds & Post Meta Data

Custom RSS Feeds & Post Meta Data

Categories post-meta Tags media, post-meta, rss

Meta function issue

Well, it doesn’t work for a very god reason. <div class=”blog_entry”> <span class=”author”>Posted by –<a href=”#” class=”normaltip” title=”Posted By”> <?php the_author(); ?></a></span> <span class=”categories”>– Category –<?php __(“https://wordpress.stackexchange.com/questions/141754/%1$s”) ?></span> <span class=”date”>– <?php __(‘%3$s’) ?> –</span> <span class=”comments”><a href=”single_blog.html” class=”normaltip” title=”Comments”><?php comments_number( ‘no responses’, ‘one response’, ‘% responses’ ); ?></a></span> <span class=”tags”><?php __(‘%2$s’) ?></span> </div> This part … Read more

Categories post-meta Tags post-meta

get_post_meta() empty in preview WHEN custom post is published [closed]

get_post_meta() empty in preview WHEN custom post is published [closed]

Categories post-meta Tags post-meta

Post MetaTable Overload

Post MetaTable Overload

Categories post-meta Tags fatal-error, memory, post-meta
Older posts
Newer posts
← Previous Page1 … Page32 Page33 Page34 … Page51 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