Feature Image Showing Too Big
you can create custom featured image sizes in your theme’s functions file that can then be called in your theme’s template files. Read more add-custom-featured-image-sizes
you can create custom featured image sizes in your theme’s functions file that can then be called in your theme’s template files. Read more add-custom-featured-image-sizes
Change your Facebook plugin. I recommend you change the plugin to the official Facebook plugin – it’s been made by some of the same people and allows you to publish immediately. Image in your RSS feed: Your RSS feed should be found here (but it’s not there?) because you are using another RSS feed plugin. … Read more
you can try this filter add_filter(‘wp_get_attachment_image_attributes’, ‘my_img_title’, 10, 2); function my_img_title($attr, $attachment = null){ $attr[‘title’] = get_post($attachment->ID)->post_title; return $attr; } It should give the the extra title attribute in the img tag. You can also use the ‘post_thumbnail_html’ filter to edit the html output. ps: here is a similar question: Display info from custom fields … Read more
First, you’ll want a quick way to toggle whether a post is featured or not. I wrote a plugin that does this: http://wordpress.org/extend/plugins/featured-item-metabox/ but I feel like a total dork because I just discovered that this plugin was already doing that! http://wordpress.org/extend/plugins/featured-post Ugh. Anyway, how you want to feature them on the home page will … Read more
I think you can use a different approach: write a custom sql query that get the ids of the thumbnails attachment of the children pages, and if found call wp_get_attachment_image_src on this ids to retrieve the urls: function my_get_thumbnails( $post = NULL, $which=”both” ) { // first we get the post, if no post is … Read more
A simple approach could be to use a global array in which you will store posts that are selected in the featured query. You could set this array in your functions.php or index.php : $featured_post_array = array(); Then in your featured.php file first call the global array somewhere in the beginning: global $featured_post_array; and inside … Read more
Why I have this strange behavior when I try to exlude the featured post from posts visualization?
Of course it will not return any posts if your first post does not have custom field feature-it. Because you are checking for custom field after you are running your query. So let me explain what exactly you are doing in your query. You are asking WordPress to return one post with post_type courses. And … Read more
Try to use wp_query instead of query_posts
You should clean it up some more but this will fix your code: <?php get_header(); ?> <div class=”posts”><!– BLOG –> <!– Shapes on sides –> <div class=”shapes_left”> </div> <div class=”shapes_right”> </div> <?php if (is_tag()) { ?> <div id=”archive_title”> <h1><?php single_tag_title(); ?></h1> <?php }?> </div> <div id=”featured_home”> <?php $counter = 0; while ( have_posts() ) { … Read more