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>
You can do this within the Loop: <p>Last modified on the: <?php the_modified_date(); ?>. by: <?php the_author(); ?></p>
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
Maybe add_rewrite_rule
Figured it out: update_post_meta($id, ‘main_tag’, $_POST[‘mainTagButtons’]) Easy
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
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
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
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
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
take a look at my answer to a very similar Question.