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

How to make certain content of the post noindex and no follow. not entire post?

Some spiders honor the <noindex>…</noindex> tags within a page so in that case you could simply wrap your FAQ content with <noindex></noindex>. But I honestly don’t know if Google or for that matter which spiders honor the tag. Since this is not really a WordPress question it’s off topic for this forum. You’d more than … Read more

Categories post-meta Tags noindex, plugins, post-meta, seo

Does post-meta belong in header?

The w3 specification says that only h-tags are allowed inside of the hgroup-tag. The basic purpose of it is to group a main-headline and a sub-headline together. <hgroup> <h1>My maintitle</h1> <h2>Subtitle of my content</h2> </hgroup> edit html5 also adds the header-tag to use within the body. Inside of this any other html element is allowed. … Read more

Categories post-meta Tags headers, html5, post-meta

Cache metadata for set of posts

I did a lot of digging into wordpress, and it looks like WP_Query ends up calling (indirectly) update_postmeta_cache($postIDs); which looks like it is exactly what I need. Hope that helps somebody else out. In 3.5.1 it’s located in wp-includes/post.php#2735.

Categories post-meta Tags optimization, post-meta, wpdb

Custom Fields help

I don’t know what $dorigen is – but you can’t find your </h3> because of your if/else condition. I don’t see why the else is needed at all. Replace else { ?> </h3><?php } ?> with </h3> in both places it is used. That said, if you only want to show the entire post-meta div … Read more

Categories post-meta Tags advanced-custom-fields, post-meta

Write query according to post_meta

change the $args to this: $args = array( ‘posts_per_page’ => 20, ‘paged’ => $paged, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘meta_query’ => array(array(‘key’=>’favpost’.$userID, value=>’1′, ‘compare’ => ‘=’)) ); That is if the post_meta value is 1 when the user select that post as it favorite, or it could also be ‘true’ you will have to … Read more

Categories post-meta Tags post-meta

Access Serialized Post Meta Values

Access Serialized Post Meta Values

Categories post-meta Tags post-meta

get_post_meta image width for lazy load

Looks like you have the image URL saved as a custom field and not the attachment id so first get the attachment id using the URL using Philips awesome function and then use wp_get_attachment_image_src() to get the attachment attributes : $attch_id = pn_get_attachment_id_from_url(get_post_meta($post->ID, ‘img1’, true)); $image_attributes = wp_get_attachment_image_src( $attch_id ); // returns an array //$image_attributes … Read more

Categories post-meta Tags post-meta

Get meta information from post parent

The ID of the parent post is in $post->post_parent. When a post has no parent, that number is 0. So … if ( is_singular() ) { global $post; if ( 0 !== (int) $post->post_parent ) { $some_value = get_post_meta( $post->post_parent, ‘some_metabox_param’, true ); if ( ! empty ( $some_value ) ) echo $some_value; } }

Categories post-meta Tags post-meta

WordPress join posts with meta values of array type

WordPress join posts with meta values of array type

Categories post-meta Tags post-meta

Using mysql queries to delete custom post types based on meta_value

Using mysql queries to delete custom post types based on meta_value

Categories post-meta Tags cron, mysql, post-meta
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … 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
  • 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