naysilva
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: "There has been an error cropping your image" – possible fixI ran into this issue this morning on my local site, I’m using Ampps so activating PHP –> Php Extension –> gd.so did the trick.
Cheers guys!
change:
.colophon .social-block {
text-align: center;
}to
.colophon .social-block {
text-align: left;
}No idea what this is? Never come across this
Not so much a fix, more a laborious workaround. I just wrapped the template pages with the following (Below the header and above the footer):-
<?php if(pmpro_hasMembershipLevel(array(1,2))) { ?> // TEMPLATE CONTENT <?php } ?>
Then added the following at the bottom of the page:-
<?php if(!pmpro_hasMembershipLevel(array(1,2))) { ?> <?php include 'subscribe-options.php'; ?> <?php } ?>
I added subscribe-options.php in the root directory just so I didn’t have to repeat the content within all the pages I had to include this in.
I’ve just realised that this only works on pages that use the ‘Default Template’, for the above page I am using the ‘Shop’ template, how can I make the restriction work for pages that do not use the default template?
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each CatergoryOkay 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 category within the control panel. This appears to have fixed the problem and I guess this way it is easier to manage.
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each CatergoryJust 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’ as the category are not displaying any image. I’m really unsure as to why this is not working now.
Take a look here; https://web-tricks.co.uk/?cat=3
You can see they are all in the same category, some showing featured image, some not.
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each Catergorylinux4me2 – 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.
I’ve also checked Posts –> Categories, and there is definitely only one Category called ‘WordPress’
All posts only have 1 defined Category, some have 1 or 2 tags.
I’ll try making a new post with the same content and see if that works.
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each CatergoryUpdated to the above, unfortunately it’s still the same ?? – is it possible to use something like $post-> ‘name’ i.e. ‘WordPress’
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each CatergoryThere are two posts that have the category ‘WordPress’ and are not working, one has the following:-
Categories: WordPress
Tags: Plugins, WordPressThe other has these:-
Categories: WordPress
Tags: WordPressYet theres another post with the same categories/tags as above, and its working.
It’s pretty random. I thought initially it was the posts that had images within the post as all the others that are working don’t have images, I tried removing them and this didn’t resolve it.
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each CatergoryI’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 Best Plugins for WordPress’
Forum: Fixing WordPress
In reply to: WordPress – Setting a default 'featured image' for each CatergoryThanks linux4me2 – I’ve just updated my functions.php to your post but I’m still having the same problem, no idea what’s going on. Any other suggestions?
Forum: Plugins
In reply to: WordPress [code][/code] plugin?
Forum: Fixing WordPress
In reply to: Woocommerce – echo product name?Figured it out ??
echo get_post_meta( 'id', '_regular_price', true);
Forum: Fixing WordPress
In reply to: Woocommerce – echo product name?Any idea how to echo the price as well (by id)?