Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

post-thumbnails

Home/ post-thumbnails

How to find attachment by it’s name?

Question
Is it possible to get attachment id by its name? And at once may be it's possible to get parent post, to which this attachment is assigned?
0
attachments, images, post-thumbnails Kirix 3 years 0 Answers 55 views

Resizing images only for WooCommerce categories

Question
I'm trying to resize images just for category pages for a WooCommerce site I'm building. Essentially, I want image square throughout the site, but 3:4 for WooCommerce categories. I thought this code would work in my functions.php, but I'm obviously doing something wrong because desp
0
post-thumbnails, woocommerce Tim 3 years 0 Answers 53 views

How to use default image as featured image by implement some code in function.php

Question
I want to use a default image as a featured image for all those Posts and Pages, where is not any selected featured image from media. I have tried this code in function.php but not working, function filter_post_thumbnail( $html ) { if ( '' == $html ) { return '<im
0
images, post-thumbnails, thumbnails Puneet Verma 3 years 0 Answers 50 views

Post featured image column on admin post list page

Question
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 there a way to show featured images of the post on the admin post list page as a column?
0
post-thumbnails, posts busyjax 3 years 0 Answers 59 views

Is it possible to set Featured Image using HTML?

Question
The Amazon affiliate program does not let you download images from their site and upload it via their server. One authorized way of using images from Amazon is to use their API or Sitestripe. For new affiliates that haven't made any sales yet, we are only allowed to use Sitestripe. Sitestr
0
amazon, post-thumbnails Tim 3 years 0 Answers 52 views

retrieve and display thumbnail from post ID of best selling product within product_tag taxonomy

Question
I have used the below code to retrieve and display the thumbnail of best selling product from each product tag. The product tags are listed as required, however the thumbnail is not displayed on hover. $max_tag_count = 14; // this is 'x' $qty_per_column = 7; // this is 'y' $args =
0
categories, post-thumbnails, tags, woocommerce, wp-query aye cee 3 years 0 Answers 47 views

retrieve thumbnail from post ID of best selling product within product_tag taxonomy

Question
I have used the below code to retrieve the thumbnail of best selling product within a product category and thought I could do the same for product tags by simply switching out the taxonomy to product_tag, however it has not worked. $max_tag_count = 14; // this is 'x' $qty_per_colum
0
categories, post-thumbnails, tags, woocommerce, wp-query aye cee 3 years 0 Answers 50 views

How to display image sizes in API embedded?

Question
I have just used regenerate images tool to regenerate image sizes and it was successful though I need those image sizes to show up in wp rest api when calling post in _embedded field. As you can see it's an empty object.
0
embed, images, post-thumbnails, responsive, rest-api Egle Ged 3 years 0 Answers 51 views

Category images are not displaying in WordPress

Question
I have categories list with there respective images. I am able to get the category name and description but I am not getting the category image. I tried the below code. <ul> <?php $categories = get_categories( array( 'taxonomy' => 'category', 'or
0
categories, images, post-thumbnails, wordpress.org Naren Verma 3 years 0 Answers 47 views

Have get_the_post_thumbnail output different image if custom meta exists

Question
I have a meta box on each post where a user is able to select another image from the media library. I want this image to override the output whenever get_the_post_thumbnail is used across the whole theme. I've looked through the wp-includes/post-thumbnail-template
0
filters, hooks, metabox, post-thumbnails epsilon42 3 years 0 Answers 46 views
1 2 … 19
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • 404 error - Page not

    ...

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.