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

Displaying the ‘time ago’ for recent activity within a post/custom post type?

You can do this within the Loop: <p>Last modified on the: <?php the_modified_date(); ?>. by: <?php the_author(); ?></p>

Categories post-meta Tags post-meta

get_post_custom_values problem, please help

Just wondering why you are using $values = get_post_custom_values(“issue-cover”); so many times. You are missing the post->ID argument as the second parameter. You only need to define this variable once and then use it over and over. I’m also wondering why you don’t use post-thumbnails to solve this. There are two handy functions that are … Read more

Categories custom-field Tags custom-field, post-meta

How to Use metada Value in Url and is it possible? [duplicate]

Maybe add_rewrite_rule

Categories permalinks Tags permalinks, post-meta, rewrite-rules, url-rewriting

save radio button selection in post-meta on submit

Figured it out: update_post_meta($id, ‘main_tag’, $_POST[‘mainTagButtons’]) Easy

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

Unable to set Custom “Link URL” for Featured Image, and More?

I cleaned up the code u have given and it should work as you intend. Let me know if your still having problems. <div id=”slider”> <?php $c = get_option(‘wpns_category’); $n = get_option(‘wpns_slices’); $s = new WP_Query( array( ‘cat’ => $c, ‘posts_per_page’ => $n ) ); if( $s->have_posts() ): while( $s->have_posts() ): $s->the_post(); global $post; ?> … Read more

Categories post-thumbnails Tags post-meta, post-thumbnails, urls

Custom Meta Box with variable number of fields

This probably isn’t the best way to proceed, but seeing as nobody else answered… I recently was in the same situation, heres how I did it : Named the fields so I could access them as an array in the $_POST (ex. name=”description[]”), and gave new appended fields the same name. Using the ‘save_post’ hook, … Read more

Categories custom-post-types Tags custom-post-types, metabox, post-meta

Get author total post votes from post meta

Assuming that you have a loop within your author.php file, grab the required metadata for every post within it, add it into a variable and display that after the loop has finished: $author_vote_count = 0; //declare vote count variable before the loop <?php while ( have_posts() ) : the_post(); ?> // the stuff going on … Read more

Categories custom-field Tags author, custom-field, post-meta, query-posts

Link Posts to External URL

I just released a plugin that does pretty much that… you may want to take a look at the Recommended Links plugin and see how its done… or if this plugin works, try converting your links to the custom type I’m using and just install this plugin. My approach was to create a new custom … Read more

Categories plugins Tags customization, plugins, post-meta, posts

wpdb->get_var – count author posts, meta value

This wouldn’t be possible unless you keep a log of users that have voted the Idea. You will have to create another hidden post_meta array which will store a list of all the users who have voted the Idea. In that way you could count the number of votes an author has given. Or better … Read more

Categories post-meta Tags author, count, post-meta, wpdb

Filter search posts by post meta?

take a look at my answer to a very similar Question.

Categories custom-post-types Tags custom-field, custom-post-types, filters, post-meta
Older posts
Newer posts
← Previous Page1 … Page76 Page77 Page78 … 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