get_post_meta() problem again

So many issues here… First, I’m not sure what this line is doing: add_action(‘admin_menu’, ‘tweet_fetch1′); If you don’t actually have a function called tweet_fetch1 that runs when the admin loads, you should remove this add_action. And if you do have such a function, why is your add_action in this location? The first step to avoiding … Read more

Output loop to function return?

First, need to lose query_posts() – it should never be used for secondary loops. Try something like this: $posts = get_posts( array( ‘cat’ => $category->term_id, ‘numberposts’ => 3, )); foreach( $posts as $post ) { $listing_code .= get_permalink( $post->ID ); //or whatever }

attachment page template? only show attachments for current post?

The attachment.php is a specific template in the WordPress template hierarchy. WordPress uses it for a specific purpose, and the default Loop just won’t do what you’re claiming it’s doing. (The behavior you’re describing would be analogous to the single.php template file looping through all Posts.) I’m guessing your attachment.php template file has a custom … Read more

Where to call my pagination function?

If you added the pagination() function to your functions.php, you only have to call it in your theme files. Which file depends on where you want to display it, see the Template Hierarchy for details. You don’t want to call this inside The Loop (between the while () {} or while : … endwhile;), because … Read more

Latest Foursquare Checkin function

Here is a solution for you: First download this nice little class Next, include it and “login” <?php require_once ‘foursquare.php’; //Load the foursquare class $foursquare = new fourSquare(“username”, “password”); //login Then to get the venue’s name use: <?php echo $foursquare->venueName; ?> you can also get the venue’s type,venue’s icon, venue’s location on the map and … Read more