linux4me2 on "WordPress - Setting a default 'featured image' for each Catergory"
Hmmm... Are the posts that are giving you weird results in more than one category?
View Articlenaysilva on "WordPress - Setting a default 'featured image' for each Catergory"
I've set the featured image manually as the Wordpress one for now which works, I've left one of the Wordpress category unset that is still not working which is the following post; 'Web-Tricks Top 10...
View Articlenaysilva on "WordPress - Setting a default 'featured image' for each Catergory"
There are two posts that have the category 'WordPress' and are not working, one has the following:- Categories: WordPress Tags: Plugins, WordPress The other has these:- Categories: WordPress Tags:...
View Articlelinux4me2 on "WordPress - Setting a default 'featured image' for each Catergory"
Try this instead: function default_category_featured_image() { global $post; $category = get_the_category($post->ID); switch ($category[0]->term_id) { case '2': set_post_thumbnail($post->ID,...
View Articlenaysilva on "WordPress - Setting a default 'featured image' for each Catergory"
Updated to the above, unfortunately it's still the same :-( - is it possible to use something like $post-> 'name' i.e. 'Wordpress'
View Articlelinux4me2 on "WordPress - Setting a default 'featured image' for each Catergory"
I changed the code a little by editing it above and you may have missed my changes, make sure you're using this line: switch ($category[0]->term_id) { It's better to use the IDs if you can, in case...
View Articlelinux4me2 on "WordPress - Setting a default 'featured image' for each Catergory"
The other thing that may be tripping us up is multiple categories. I'm just checking the first one in that code. If a post is assigned to more than one, which doesn't appear to be the case, the code...
View Articlenaysilva on "WordPress - Setting a default 'featured image' for each Catergory"
linux4me2 - I copied and replaced the whole code you posted. I went into permalinks and changed it to show the post ID, and when I click on 'Wordpress' for the none-working posts it does say ID = 3....
View Articlenaysilva on "WordPress - Setting a default 'featured image' for each Catergory"
Just to add, I've just added 3 posts with 'WordPress' as the category, one which was copied, one without the image, and one with just a title and one word as the post. All 3 posts with just 'WordPress'...
View Articlenaysilva on "WordPress - Setting a default 'featured image' for each Catergory"
Okay I have no idea why that wasn't working but I installed the following plugin; 'Default Thumbnail Plus' You can set a default image if there is no featured image set, and set an image for each...
View Articlelinux4me2 on "WordPress - Setting a default 'featured image' for each Catergory"
I am stuck too. I wonder if it would have worked had you put it in the loop instead of in the functions.php? If you do end up figuring out what was wrong, please post so I know too.
View Articlesay_hello on "hook meta-slider-plugin into the theme-header"
hello dear wordpress-experts, good evening. how to run Meta-Slider in the responsive-Pro-(/child-) theme? well to begin with the beginning i am fairly new to wordpress run a wordpress version 4 . 0...
View ArticleLifeista on "Can't install cache"
I just can't install a plugin cache such as W3 Total Cache or WP Super Cache. I just started using my site so I didn't have any caches installed before. When I search for the plugin, instead of the...
View Articlefineworldmedia on "Content view"
Please can anyone tell me the best 'content view plugin" that shows excerpt with pictures? The one I'm using doesn't show pictures with summary text unless it's in full text which occupies space and...
View Articleaegirr on "Plugin for sorting of posts from a category"
What is your favorite plugin for sorting posts?
View Articleaegirr on "Plugin for sorting of posts from a category"
The plugin WP-popular Posts Tool is almost what I want, but unfortunately the category id does not work - it does not chose a spesific category. Any ideas?
View Articlehendrikvb on "Masonry not for Portfolio but all kinds of content"
Hi everybody, I'm looking for a plugin that creates a masonry areas with different sized images and lets me link to all kinds of content: articles, pages, woocommerce products, external links etc....
View Articlefhealy on "Want to install plugin"
I have downloaded a plugin but i don't know how to install it
View ArticleVtin on "[Plugin: WP Page Widget] Editing "tag" or "category" problem....
Same problem here. With SEO and Widgets plugins activated at once, you cannot swich between 'visual' and 'text' tabs when editing a page or post, and preview or update buttons doesn't work.
View Articlemathodges on "timeout password protected page wp 3.9.2"
Thanking you big time @ leonardus for recommending and sharing link for content-protector. The hand written code when inserted (inside an Elegant Themes template) deleted my clients' site --fortunately...
View Article