Hello! I was looking for any info about ‘WPCustom Category Image’. That is why I`m here. My website had lost the style. Usually on the top was the a spectacular slider with the announcements of texts.
The subject 1:
This theme requires the following plugin: WPCustom Category Image.There is an update available for: WP Retina 2x.
The subject 2:
WPCustom Category Image: Plugin not found.
I’ve sent the email already to the theme creator. But maybe the cause in the plugin?
Help please!
]]>I am still using this plugin despite it being ‘abandoned’. But I have my reservations, as it may break in the future. Does any one have any suggestions for an alternate plugin with same functions?
Why is this functionality not built into WordPress?
]]>Hi,
Could you tell me if there is anyway to create it by code?
Like using wp_insert_attachment and wp_generate_attachment_metadata function.
Regards
]]>Hi!
I’ve added the plugin WPCustom Category Image to my site but the images are not showing up. I’m running WP 4.9.8. Does anyone have a thought about this? Many thanks.
]]>Where can I find some instructions on how to actually make the plugin work, i.e where to add the shortcode? Thanks!
]]>Hi
Dose this plugin working with WPML ? I think I have problem that I could not save the image in the other languages..
Any help?
]]>Hi,
I want to use your plugin. I’ve added the image, but I don’t know where to insert the shortcode. I work locally at the moment so I don’t have the link.
]]>Hi is there a way of extracting the url from this foreach loop?
foreach( get_categories(['hide_empty' => false]) as $category) {
echo do_shortcode(sprintf('[wp_custom_image_category term_id="%s"]',$category->term_id));
}
]]>
Hello
I would like to use WPCustom Category Image in a theme. I easily get the image-URL using category_image_src(). However, I would like to retrieve more details about the attachment like mime-type or dimensions. Actually the attachment ID would be best to get the rest via WordPress functions.
This is where I get stuck. The category_image() function looked promising. But it returns an HTML object. This is nearly useless in my case.
Do I miss something?
]]>Love this plugin! But I’d love to see the option to have child options inherit the image from their parent terms – My theme uses this plugin to grab a header image on archive pages, but I don’t want to have to specifiy an image for every child term.
Also, would you be able to update the release version changelog?
]]>A hook to define whether we want this only on specific taxonomies would be a luxury.
A hook to remove the admin_notices action. The way the class has been made you can’t seem to get remove_action to work. We didn’t want the admin_notice to appear to all of our multisite users on every page. Also hitting the database to check if the notice should appear every admin pageload kinda sucks.
]]>Add this CSS to /css/categoryimages.css
.column-image img {max-width:100%;height:auto;}
Hi Eduardo,
I like your plugin, however our website stores all meta for taxonomies as Term Meta. WordPress has supported this for some time now.
The only caveat will be that you’ll need to write a conversion script to move people over to Term Meta. This is not difficult.
I have had to do the following to your plugin to make it neater on my site.
// $attachment_id = get_option('categoryimage_'.$term_id);
$attachment_id = get_term_meta( $term_id, 'categoryimage_attachment', true );
// update_option('categoryimage_'.$term_id, $attachment_id);
update_term_meta( $term_id, 'categoryimage_attachment', $attachment_id );
// delete_option('categoryimage_'.$term_id);
delete_term_meta( $term_id, 'categoryimage_attachment' );
// return get_option('categoryimage_'.$term_id);
return get_term_meta( $term_id, 'categoryimage_attachment', true );
Regards,
]]>Hi,
This is working great for categories, but nothing is showing up for tags…
Using code:
$category_image = category_image_src( array( ‘size’ => ‘full’ ) , false );
In archive.php (there is no category.php or tag.php in this theme).
Please advise on correct code to load image on tag archive.
Thanks,
Jennifer
HI Eduardo. Many thanks for this plugin. It works perfect, really.
I am wondering … Well I use your plugin in a site to add a sidebar banner for each category, taxonomy, etc. Is there a way to add custom link to each image? Thanks in advance!
Hi, if you do a ‘quickedit’ on the category list, any category images are lost on save.
]]>Hi there, im using the code of the example 3 as is published at description:
foreach( get_categories(['hide_empty' => false]) as $category) {
echo $category->name . '<br>';
echo do_shortcode(sprintf('[wp_custom_image_category term_id="%s"]',$category->term_id));
}
So, i want to exclude some categories, i tried doing it inserting a code on functions.php, but it didnt work. So, how can i achieve this?
Thanks.
]]>Hi!
I use the plugin in the footer, so it is outside of the loop. I display the latest posts of some categories there. Unfortunately adding the code-suggestion of the plugin does not work. If I use it like it is described ALL images of those 4 categories are shown, not only the image of the active category.
My code goes like this:
<?php
$myQuery = new WP_Query('showposts=4&cat=2,7,8,9');
while ($myQuery->have_posts()) : $myQuery->the_post();
?>
<div class="footerteaser">
<div class="footerteaser_bild">
<?php foreach( get_categories(['hide_empty' => false]) as $category) {
echo do_shortcode(sprintf('[wp_custom_image_category term_id="%s"]',$category->term_id));
} ?>
</div> <!--footerteaser_bild-->
<div class="footerteaser_text">
<a href="<?php the_permalink(); ?>" title="Permalink to <?php the_title(); ?>">
<strong><?php the_title() ?> </strong>
</a> <br />
<?php $mycontent=get_the_excerpt();
echo substr($mycontent,0,100);
?>
</div><!--footerteaser_text-->
</div><!--FOOTERTEASER-->
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
Could you please help me to see my mistake? I suppose the problem is that I am out of the loop.
Thank you!
Raphael
Hi,
Thank you for your work.
I have installed the following plugins as I want to have a specific background image for a specific category in my apptheme template (classipress) :
Background images from Chris KNOWLES
WPCustom Category Image from you
When I want to have an image for the whole site it works correctly but I do not succeed in have a specific image for a category.
The website is annonces.digibike.fr
The “Use featured image on categories (requires WPCustom Category Image plugin)” option is activated in “Background images”
The image is associated to the “motos” category (classified) and “non classé” news category.
Do you have any idea ?
Thank you.
Hi there!
It would be possible to show featured images for archive pages?
Thanks!
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>Using your plugin and there is an issue
Please change “$CategoryImage = new static;” TO “$CategoryImage = new self;” because if you place the static it will generate below error
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or ‘$’ i.e plugin is not compatible with above php version 5.6.3
You can find line number 32 WPCustomCategoryImage.php
Thanks
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>Hi,
I’ve used this plugin for a long time and it’s very useful and convenient.
But since 4.5 I think, when I try to change a category picture, the admin page is only reloaded; I can’t even reach the media popup.
It looks weird because otherwise I can add a picture to a new category.
Can you look at it please ?
Thanks in advance.
Micka?l
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>I’m getting the following error when I try to first activate the plugin:
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or '$' in /home3/thegalm1/public_html/test/wp-content/plugins/wpcustom-category-image/WPCustomCategoryImage.php on line 29
Anyone else getting this? Any help:
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>I’m trying to show the post category image, but it’s not showing. Any idea what I did wrong?:
<?php
$args = array('post_type' => 'post','cat' => '','showposts' => 2,);
$categories = get_categories();
foreach ($categories as $category)
{
$term_id = $category->term_id;
$image = category_image_src( array('term_id'=>$term_id) , false );
}
?>
<?php $recent = new WP_Query($args); while($recent->have_posts()) : $recent->the_post();?>
<li>
<img src="<?php echo $image; ?>" alt="<?php $alt = get_the_category(); echo $alt[0]->cat_name; ?>" class="align-left">
<h2 class="entry-title" itemprop="headline"><a class="news-title" rel="bookmark" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</li>
<?php endwhile; ?>
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>Hi there,
I am absolutely new to WordPress and don’t really have a clue about coding and css, but I successfully googled my way through how to set up my blog the way I like it.
However, I just can’t seem to get this plugin installed.
https://www.kiwisandkrauts.com
I found your helpful side with tips how to install it in TwentyFourteen, any changes that you could explain how to install it in TwentyFifteen.
As I said I have no clue about coding. So I would prefer a step-by-step “copy/pasting method” ??
Thanks in advance.
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>Hi
I have the problem, that I have a category AND a page, which both have the same ID.
I get the thumbnail with:
$thumbnail = category_image_src( array( 'term_id' => $child->object_id, 'size' => 'full' ) , false );
I use this line in “Walker_Nav_Menu”
and now, there is not the thumbnail for the category showing up, but the thumbnail of the page.
strange?
Simon
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>It’s not working with custom taxonomies defined with plugin “Types”, WordPress 4.2.2
I think it’s because it’s calling get_taxonomies
in initialize()
before custom ones are registered.
WORKAROUND: calling get_taxonomies
again in admin_init()
:
public function admin_init()
{
// call this here to get custom taxonomies
$this->taxonomies = get_taxonomies();
if( ! is_array( $this->taxonomies) ) return;
foreach( $this->taxonomies as $taxonomy )
{
add_action( $taxonomy . '_add_form_fields' , array($this,'add_taxonomy_field') );
add_action( $taxonomy . '_edit_form_fields' , array($this,'edit_taxonomy_field') );
}
}
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>I’m getting this error when trying to activate:
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or '$' in /wp-content/plugins/wpcustom-category-image/WPCustomCategoryImage.php on line 29
.
What can i do to fix it?
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>I’m getting this error when trying to activate:
Parse error: syntax error, unexpected T_FUNCTION in /home/pimpitco/public_html/wp-content/plugins/wpcustom-category-image/load.php on line 30
Any ideas? Thanks!
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>I checked this plugin on 3 themes, but it is not working for custom taxonomies.
https://www.ads-software.com/plugins/wpcustom-category-image/
]]>