Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

post-thumbnails

How to change post featured image using a custom field of category?

August 5, 2022August 4, 2022 by Magenaut

I have added an image custom field for categories, in which I assign an image for every category. Something like this:

Categories Q&A, Wordpress Tags advanced-custom-fields, categories, custom-field, custom-post-types, post-thumbnails Leave a comment

How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?

August 5, 2022August 4, 2022 by Magenaut

While looking through the function reference entry for wp_insert_post(), I noticed that there’s no parameter in the array it requires which will allow me to set the ‘Featured Image’ for a post, displayed as the post thumbnail in my theme.

Categories Q&A, Wordpress Tags post-thumbnails, wp-insert-post Leave a comment

How to Fix HTTP Error When Uploading Images?

August 5, 2022August 4, 2022 by Magenaut

I am using WordPress 3.4.1 on Ubuntu 12.04 using Apache and PHP 5.3.X

Categories Q&A, Wordpress Tags attachments, media, media-library, post-thumbnails, uploads Leave a comment

Filter to remove image dimension attributes?

August 4, 2022August 3, 2022 by Magenaut

I’m working on a site based on a fluid width css template which sets a max-width on images to the width of the column containing them, and I need to remove the inline width and height dimension attributes that WordPress adds to images.

Categories Q&A, Wordpress Tags filters, images, post-thumbnails Leave a comment

How can I make add_image_size() crop from the top?

August 4, 2022August 3, 2022 by Magenaut

I have a series of posts, all with featured images, but I need to be able to customise the crop top right corner. In this instance, I need them to be cropped from top right, but it would be useful to also know how to position that point myself.

Categories Q&A, Wordpress Tags images, plugins, post-thumbnails Leave a comment

Differentiate Featured Image from Post Images upon Upload

August 4, 2022August 3, 2022 by Magenaut

I want to differentiate the featured image from post images.

Categories Q&A, Wordpress Tags media, post-thumbnails, uploads Leave a comment

oEmbed, thumbnails and wordpress

August 4, 2022August 3, 2022 by Magenaut

WordPress has wp_oembed_get, which I use to get rich media content with embed.ly. I’ve previously used oEmbed api calls such as this. As you can see it provides thumbnail_url, which I like to use instead of embedding the video. How can I do this with wordpress?

Categories Q&A, Wordpress Tags oembed, post-thumbnails Leave a comment

Set Featured Image Front Frontend Form

August 4, 2022August 3, 2022 by Magenaut

I have been struggling for days to figure this one out. I have successfully implemented a form to submit posts from the front end of my site. ButI can’t figure out how to make the image uploads work.

Categories Q&A, Wordpress Tags attachments, forms, front-end, post-thumbnails Leave a comment

Add class name to post thumbnail

August 4, 2022August 3, 2022 by Magenaut

I’m using post thumbnails to link to a page.

Categories Q&A, Wordpress Tags post-thumbnails Leave a comment

Upload post thumbnail from the front end

August 4, 2022August 3, 2022 by Magenaut

We would like users to be able to upload the post thumbnail when editing posts. How would this be done. I would imagine it would make use of the ajax functions of wordpress.

Categories Q&A, Wordpress Tags ajax, front-end, post-thumbnails, uploads Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page7 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress