How to use thumbnail size of image if I’m only using src to get image

Since you are using get_sub_field() i assume you are inside a have_rows() (a repeater), in theory it should work like this: $image = get_sub_field(‘image’); <img src=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“url’]; ?>” alt=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“alt’] ?>” /> and this is what you can get: $image[‘url’] //this is the full image echo $image[‘sizes’][‘medium’]; //medium image echo $image[‘sizes’][‘thumbnail’]; //thumbnail image … Read more

Change title only in dynamic page

Just to make sure, does the title tag in your <head> area (presumably in header.php) look like this? <title><?php wp_title(); ?></title> It has to be like that for Yoast to work with it, and be able to override titles. Anyway if you add this to your single.php (or at least before get_header() is run for … Read more

How to create global title in header of wordpress theme

I’ve created a single file plugin that combines all the below code for easy use and partly out of boredom. Displaying the current title is simply echo get_the_title(); and it really just comes down to where you want to display it along with how you want to wrap it via HTML. WordPress doesn’t have subtitles … Read more

WordPress & Fastcgi proper setup?

clearing up external caches is hard, probably the best way to handle it is to set the cache expiry time to the longest time period in which you can afford to show “stale” information, and let the caches expire by themselves. (and hopefully you do not cache admin sessions….)