0
votes
1answer
65 views

How to check if single.php has already called the_post_thumbnail function

I am creating a front end plugin to upload images and adding filter in the_content() to display post thumbnail but some templates already have the_post_thumbnail in single.php or loop.php. Is there ...
0
votes
1answer
32 views

Admin - no Featured image choice in create new/page|post

I am developing a WP theme and I wanted to add a thumbnail/featured image to a new page/post but there is no such option/choice - like it used to be, I am using WP 3.8.1, I did try to turn off all the ...
0
votes
2answers
106 views

Underscores.me retrieve next / previous post thumbnail in post_nav function

I am using Underscores.me for a project. I'd like to add the featured image (thumbnail) to the previous / next post links. They have a function which I'm trying to edit called THEMENAME_post_nav(). I ...
0
votes
2answers
53 views

Post Image not displaying in category view

I tried adding an thumbnail sized image in the very first line of the post so that I want my category list search should display with this thumbnail and some text with "read more" button but this ...
2
votes
2answers
60 views

How to Set Featured image In Wordpress without Showing it into Post?

I just want to set featured image of my post but don't want to show it in my post. How can I do that? Detailed : I want to post to show its thumbnail in main page but not to show it when we expend ...
0
votes
1answer
46 views

preg_replace not removed “class”

Use this code to remove the label "class" of the images, but does not work. The label does not disappear in the new post. function the_post_thumbnail_remove_class($output) { $output = ...
0
votes
0answers
41 views

WordPress Featured Image on Custom Import

I'm working on customizing import plug-in and I'm facing hardness assigning a featured image while importing the data. I'm uploading the images to a custom folder via FTP and each post in the CSV ...
0
votes
0answers
10 views

How to create custom anchore to specific past category with feature image?

I created wordpress website and add 6 statics banner. Now i want to dynamic so i created a add category and add featured image as a banner but dont know how add anchore please give me idea or aany ...
0
votes
1answer
200 views

Random Category with Recent Post Title and Thumbnail

This code below works perfect to pull the title of five random categories, the issue is for each random category I want the latest post title and thumbnail but where and how do I add the post query? ...
1
vote
2answers
610 views

Post featured image column on admin post list page

I have a client site which accepts images from users as posts. For moderation, we are opening each draft post which obviously takes a lot of time if a hefty amount of images are moderated. So, Is ...
0
votes
1answer
193 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
-1
votes
3answers
349 views

$attachment->post_title not displaying title

I have this little piece of php. $attr = array( 'class' => 'bigImg', 'alt' => trim(strip_tags( $attachment->post_excerpt )), 'title' => ...
2
votes
1answer
41 views

Require a featured image to publish post

I have a multi author WordPress blog. I'd like to allow publishing of a post only when a featured image is set. How can that be done?
1
vote
1answer
46 views

Get all images in post and comments like Twitter before post title

I want to know if it's possible to get all the images that are in a post and his comments, make them a thumbnail and put it before (or in a sidebar or something) the post title to show, just like ...
0
votes
1answer
48 views

Retrieve post thumbnails

I am trying to build a wordpress blog from scratch. I am looking to retrieve all the articles from a specific category. I then want to also include the SQUARE thumbnail(not a stretched version, a ...
0
votes
1answer
165 views

Displaying warning if no featured image has been set - Post Editor

I run a multi-author website and many of my users are forgetting to set a featured image for their post. This is a big problem as my theme depends highly on featured images to keep a consistent feel ...
0
votes
1answer
180 views

Latest news mini images

I tried to find an answer on websites and other forums, but found nothing. I will try to explain my problem. I need to change my WordPress website so that it displays a small image for all news ...
0
votes
3answers
251 views

Retrieve a specific post's featured image and show on a different page

What I'm simply trying to do is grab the featured image thumbnail image from a specified post/page and display that image on any other page somewhere. So for instance, if it's a single post, use the ...
-1
votes
2answers
247 views

Excerpt with image

I would like to use my excerpt field to display a different image for each post to represent that post. For instance a post about a new album instead of having a title/text excerpt would simply be an ...
0
votes
1answer
96 views

Insert link to my thumbnail images

I am try to insert link to my thumbnail images, the link is hyperlink with post. When i put this code inside the loop then instead of showing the first image, first show the second image ...
1
vote
2answers
2k views

Errors when uploading images in WP 3.5

I'm trying to upload images in WP 3.5 to set featured images for posts. Unfortunately I get the following error message: An error occurred in the upload. Please try again later. The installed ...
3
votes
1answer
557 views

Make featured image required

Is it possible to force user to set featured image on some types of posts. For example I've got custom post type mm_photo and I want to show some error message or somehow block user from publishing or ...
1
vote
2answers
396 views

Issue where WP Featured Image will not display

The code I'm using, is outside of WordPress i.e. define('WP_USE_THEMES', false); require('blog/wp-blog-header.php'); global $wpdb; The code that I'm trying to display the post thumbnail (the ...
1
vote
3answers
817 views

How to add/assign or change featured image in post programmatically?

I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = ...
0
votes
1answer
556 views

Only show featured image on exerpt and exclude images in post

I have below code which displays the featured image from the post. But when I add an image to the post it also shows up with the featured image. What I need to do is just show the featured image and ...
1
vote
4answers
939 views

How only display all post related to category

I'm trying to make a custom template for my category pages that only pulls in post under a specific category. At the moment, I am only able to pull in all post and not category specific... My code so ...
0
votes
1answer
92 views

How can i add thumbnails images to particular post (using code not admin pannel) in wordpress

I am trying to set thumbnails for my post. I have post_id = 285 and I want to add manually a thumbnail (using code) but I'm not succeeding. update_post_meta( $post->ID, '_thumbnail_id', ...
1
vote
2answers
2k views

Show featured image next to post-teasers in Genesis Framework?

I want my posts to have a featured-image thumbnail beside it, how do I do this?
-2
votes
1answer
287 views

Front end post or photo or both

I need a help in correcting my code that can front end post or attach image or post&attach image ;) Now I can send a 'post' and 'post with photo' but can't send just a photo, How can I do that? ...
0
votes
1answer
4k views

How do you add thumbnail support for custom post types?

the thumbnail support is working for post, but I have another post type called product and it is not working for this. I am trying: add_theme_support( 'post-thumbnails', array( 'post', 'product' ) ); ...
0
votes
1answer
104 views

thumbnail image path and file path for gallery thumbnail images

what is the thumbnail image path? When asked for the file path for the gallery thumbnail image, what is needed? the terms: thumbnail image path and file path is not familiar to me.
0
votes
1answer
42 views

Wanting to apply different featured images for each post

This is my first wordpress website here and so far it'll looking good. The only thing I have left that I just can't figure out is the featured image for my blog page. I have set the main blog banner ...
0
votes
2answers
268 views

Posts Page Featured Image [closed]

I have created a theme that uses a featured image on every page. In settings, I have setup my "Posts Page" to be "news"...how do I get the featured image from "news" to display? The following will ...
0
votes
1answer
704 views

VT-resize image and display it [duplicate]

Possible Duplicate: Retrieve 1st image in post and set it as featured image, when post is saved/updated I am trying to make this works and instead of giving me the url of the image, it is ...
0
votes
2answers
587 views

Specific Post Format Image Thumbnail

I have a post thumbnail set for standard posts (when an image is featured) but for image format posts I'd like to have a separate, dynamically resizing (i.e. image resizing in the functions php via ...
0
votes
1answer
1k views

How to display Post title By ID and its Thumb Contents

Hello i'm trying to display a Post Title by its ID and its thumb content, I have I code but this displays everything, all I want is post title,its category and a short content of that post. I have a ...
0
votes
1answer
170 views

Getting only the URL of the post thumbnail

I wish to do something as simple as the_post_thumbnail('large') but I want the URL of the image only, not the HTML which goes with it. Is that possible ?
1
vote
1answer
1k views

Delete Post From Front-End and attachment permanently

Is there a way to delete a Post From Front-End and it's attachments permanently? This is a snippet that moves the post to the trash can, but it doesn't remove attached images (they remain on the ...
0
votes
1answer
315 views

attach several images to post + gallery

i'm wondering if its possible to attach several images to a post then display those images in a thumbnail/fading gallery? By the way, the images should also be resized to a fixed size + thumbnail. ...
2
votes
2answers
2k views

WP Insert Post function - Insert Post Thumbnail

Whilst performing wp_insert_post, how would one insert the post thumbnail. I tried the code below to no avail. $postit = array( 'post_title' => $itemtitle, 'post_content' => '', ...
1
vote
1answer
834 views

Showing Thumbnail from Previous and Next Posts

Is there a simple way to use the post thumbnail when calling previous_post_link() and next_post_link()?