Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?

Just use the $count variable that you are incrementing: <?php $count = 0; $some_featured_posts = new WP_Query(array(‘category_name’ => ‘apps’, ‘posts_per_page’ => 5)); while ($some_featured_posts->have_posts()): $some_featured_posts->the_post(); $count++; if( $count <= 2 ) the_post_thumbnail( ‘large’ ); elseif( 3 == $count ) the_post_thumbnail( ‘medium’ ); else the_post_thumbnail( ‘thumbnail’ ); endwhile; wp_reset_postdata(); ?>

Post ID wrong in Functions.php

Try this: function filter_pagetitle($url) { global $post; return $post->post_title; } add_filter(‘wp_title’, ‘filter_pagetitle’);

Dynamically generating an ” reference with PHP

I am not entirely sure what you are asking, but if you need a unique identifier based on posts created in WordPress, then use the post ID. Every post type is saved into the same table in the database so posts, pages, and custom post types will never have conflicting IDs.

Most viewed posts in WordPress

http://www.catswhocode.com/blog/super-useful-wordpress-hacks-and-snippets You source? I made a widget that does just that, on this same code. To sort: <?php $args = array( ‘post_status’ => ‘publish’, ‘meta_key’ => ‘post_views_count’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘ASC’ ); $the_query = new WP_Query($args); //http://codex.wordpress.org/Class_Reference/WP_Query //the loop while ( $the_query->have_posts() ) : $the_query->the_post(); //do your magic endwhile;

Client cant see the Updated dynamic content

Yeah that’s definitely a caching issue. The code you have there should handle it but you can’t really guarantee anything. Do you have a caching plugin installed? If so try disabling that. Also in your wp-config.php file see if you have this define(‘WP_CACHE’, true); if so change it to false. If it isn’t there add … Read more

Good RSS Feed Parser to use on php file?

wp_rss is deprecated and you should use fetch_feed instead which gives you much more control and options over the RSS and what is fetched ex: <?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . ‘/feed.php’); // Get a SimplePie feed object from the specified feed source. $rss = fetch_feed(‘http://example.com/rss/feed/goes/here’); if (!is_wp_error( $rss ) ) : … Read more

Manually Remove and Change WordPress Page/Post Title

Simply filter the_title to replace/append the post title with this post custom meta data. I assume that you already know how to query your post custom meta data, and as such, that querying will be outside the scope of this answer. Let’s assume that you’ve queried the meta data, as $post_author_fname and $post_author_lname, and that … Read more

Query the links Database

WordPress adds prefixes to tables names, which was setup on installation. So by default there is wp_ prefix for tables names. It means that by default table name for links will be wp_links. But you shouldn’t care about standard tables name, because all of them exists as parameters of wpdb class (read Table section), so … Read more

Trying to display terms from custom taxonomy within function

Function get_term_by returns object or array (based on $output arg) on success and false if failed. But you treat it as string and try to concatenate it. So your code should be following: $cat = get_term_by(‘id’, 17, ‘project_cats’); $html_content .= “<h3>” . rgpost(‘input_1’) . “</h3>”; //Title $html_content .= “<p><strong>Category:</strong> ” . rgpost(‘input_5’) . ” | … Read more