The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
357 views

How to display Section for certain time

i am building a News site. I want to display 1 featured post from "prime" category for only few hours. after it should be expired or disappeared from the section. please have a look here u can see ...
2
votes
2answers
2k views

Can I exclude a post by meta key using pre_get_posts function?

I see many people prefer to use pre_get_posts hook instead of query_posts. The code below works and shows all posts which have meta key "featured" function featured_posts( $query ) { if ( ...
2
votes
2answers
419 views

How to set the width and height rule for featured image

I want to know how to make rules to re-size the images for featured image? I am uploading an image in featured image section but it is not cropping the images in exact width and height for all the ...
1
vote
2answers
165 views

“Issues” loading MANY featured images on a single page (custom template)

I have a page that loads a lot of featured items in a grid. There are up to 56 images loading, and it does have a bit of a delay. This is the code as it runs now: if( count( $postslist ) > 0 ) { ...
1
vote
1answer
1k views

How to add pagination to my code?

I just want to ask how can I add pagination here in this code: <?php if ( get_option('webly_display_media') == 'on' ){ ?> <div id="recent-projects"> ...
1
vote
1answer
696 views

Front page should display only one category of posts including sticky post with custom featured post box

I need code to get one category - including its sticky post and a custom featured post box on my front page. I am using twenty twelve. I have created a child theme. I have wordpress 3.6 on a ...
1
vote
1answer
246 views

Big Image on Featured Post, Normal on Single Post

I have included a code which fetches any post under my category=featured. And that shows-up on the top of my content (*whenever we have any breaking news to show*)on blog-page. The problem is, The ...
1
vote
1answer
129 views

How to use photo in multiple posts?

I have a theme that shows images only from gallery tab (so i can't re-use an image to other posts). As you know an image can only get attached to 1 post. I found a plugin that you can attach an image ...
1
vote
1answer
1k views

how to exclude “featured” posts from the main loop?

In a category.php template, I built a function that lists "featured" posts before the main loop. The featured posts are selected using a custom field and get_posts(): function ...
1
vote
0answers
21 views

Setup Featured image on all posts from thesis thesis_post_image custom field?

I moved from thesis to other wp theme and i want to change the thesis post images (these are saved under thesis_post_image in database )as featured images. Site have over 1000+ posts. Is there a way ...
1
vote
1answer
112 views

How to display only feautured/sticky listings on the homepage

I want on my homepage on my first page to be displayed only featured listings no matter how old they are This is my homepage code: <?php get_header(); ?> <?php ...
1
vote
2answers
15 views

Latest Post Styled Different Than other Posts

I'm just completely mixed-up with this. I need the 1st post of the loop looks differently, as a kind of magazine style, you know: bigger thumbnail and bigger title. I tried already nth-of-type in ...
0
votes
2answers
537 views

Wordpress: Notice:Object of class WP_Query could not be converted to int in on line

I am facing issue in debug mode with wordpress. In my featured slider getting error Notice: Object of class WP_Query could not be converted to int in on line I am using below code for my slider ...
0
votes
3answers
121 views

How to automate featured posts number? [duplicate]

Possible Duplicate: featuring old articles without messing up with the archive Let's say you have a category called "featured". and you use that to feature posts. And the theme you have has ...
0
votes
3answers
630 views

Featured Posts Code - Repeated featured posts

I am soooo close to getting this to work but I have one outstanding issues. The featured posts code keeps repeating itself before/after each post. Any help would be greatly appreciated. The code ...
0
votes
1answer
77 views

How to change featured content to a different tag in Wordpress Twenty Fourteen

In twenty fourteen theme, we’d like to know how to change the features content tag. Currently it’s set as featured. Now, we would like to know how to code this for different page templates. We ...
0
votes
2answers
1k views

Get the 5 lastest Featured Posts from a category

Here is the website http://ariadneswonderland.gr/ that all this concerns. On the homepage I'm using a Drop shadow box plugin under the gallery to show a series of images of featured posts, as of ...
0
votes
1answer
19 views

How to display the featured image of a parent on child pages?

I was searching how I can get the featured images of the parent also on the child pages, without uploading it also for the childs. How can this solve?
0
votes
1answer
42 views

How can I detect if the current post is in this loop?

My featured articles have been built with the following query: $featured_posts = new WP_Query(  array(  'post__not_in' =--> get_option( 'sticky_posts' ),  'meta_key' => is_featured',  ...
0
votes
1answer
648 views

How can I specify the width and height of the Featured Image in TwentyTwelve theme?

I am trying to get set the width, height and position of the Featured image for a new page I created.
0
votes
2answers
367 views

show div only if have a related post inside

I want to have a related box to show up - but only if a related post is inside the div. If theres no post the whole "related_box" div should be not shown. Any idea? Here's the code so far. ...
0
votes
2answers
150 views

handling the featured category

From time to time, I feature posts from the archives. Sometimes, I need to feature items 2 3 years back. In order to feature such posts, I simply categorized them into the featured category and once ...
0
votes
1answer
43 views

featuring old articles without messing up with the archive

This is all about featuring content in WP. Say, you got 1000's of posts that you accumulated over the years and each has their own original ( and true ) post dates. And now you want to feature them ...
0
votes
1answer
299 views

filter posts without images or featured image

I'm using wordpress MU 3.3.1. I want to add a function within a loop that displays only posts with image, or featured image. please help me on how to filter posts. <?php get_header(); ?> ...
0
votes
1answer
108 views

Broken pagination, need help figuring out why!

I just tried slapping together a poor-man's "featured post" section with this exact code out of my index.php: <div id="post-wrapper"> <?php if (is_home() && !is_paged()) : ?> ...
0
votes
1answer
185 views

Hide featured post from second page

This is my category page code <--Featured Post start--> <?php $count = 1; if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?> <a href="<?php the_permalink() ...
0
votes
1answer
42 views

Display thumbnail of child, parent and ancestor using featured thumbnails

I have tried to achieve that the Home page displays featured images of all it's child pages and in turn some child pages are displaying the featured images of their child pages. This is my code so ...
0
votes
0answers
13 views

How to make text appear at bottom of post but not in featured

I'm trying to make some text (which includes a link) not appear in the slide at the top of my site, here's the site http://www.roboticmountain.com and you can see the "Image source.." etc is appear ...
0
votes
0answers
14 views

Images Being Incorrect Generated Outside Of Wrapper in Wordpress Nivoslider

I have the following code generating the images and thumbnails from the featured image of a post in the category Showcase. <?php $featured_image = get_the_post_thumbnail( get_the_ID() ); ...
0
votes
1answer
115 views

Exclude most recent posts from specific category in wp_query()

I have a featured posts slider, which uses the 'featured' tag. I have a query for this which grabs the 3 most recent posts with this tag and shows them in the slider. Below this, I have a list of 10 ...
0
votes
0answers
37 views

Don't let featured posts automatically become sticky posts

My featured posts are already displayed in a slider in the front page but are also displayed as sticky posts in my front page as well; my featured posts are displayed twice on the same page and looks ...
0
votes
0answers
44 views

Featured entries on top of the archive page

Following is the code of my archive.php I want to display 8 posts at top which are in "featured" category AND current archive term (current archive term can be category, custom taxonomy or tag). ...
0
votes
1answer
136 views

Option to feature custom post type on home page

I am wondering what's the best way to give a user the option to feature a custom post type on the home page. I have a Case Study custom post type and some of them need to be feautured on the home ...
0
votes
1answer
163 views

Title image is missing ( but is not the WP 3.5 issue )

I use Wp 3.4.2 and Featured Image. After I feel the Title, Alternate Text and publish the post, html code looks like this: <img width="214" height="300" title="" alt="Test" class="frame ...
0
votes
1answer
238 views

Include a specific post to the query_posts and remove it if it is already in the returned list

Bare with me. Firstly, here is my whole script for my featured slider articles: <div id="featured" class="<?php if ( $responsive ) echo 'flexslider' . $featured_auto_class; else echo ...
0
votes
1answer
371 views

Automatic connect wordpress to facebook with featured image?

i want when i publish any post then it show my facebook with feature image. because most of plugin don't show feature image. it's show other image. please tell me how i can do it except - simple ...
0
votes
3answers
540 views

Hide featured post on second page

I have a index.php with a featured post and a number of other posts and the standard wp_pagenavi at the bottom. I'm using the 2 loops from the wordpress codex like this: <?php $my_query = new ...