‘posts’ table should not store the absolute image path

Well, after a little research I realized that it is an (inconvenient) feature of WordPress to store the absolute path of the images and other files, something that I completely disagree with. In any case, I discovered this plugin https://wordpress.org/plugins/root-relative-urls/. It does not fix the urls of files already inserted, but it corrects those of … Read more

Insert Sponsor logo in custom own theme

That’s a shortcode, it’s meant to go in content. If you want to output it in a template but don’t know the underlying function then you can use do_shortcode(): <?php echo do_shortcode( ‘[sponsor_level category=”all” orderby=”menu_order” columns=”4″ image=”yes” title=”no” link=”yes” bio=”yes” show=”9999999″]’ ); ?>

How to add the option to choose between sizes for featured image within post editor?

<?php // First, enable thumbnails if they are not enabled yet add_theme_support( ‘post-thumbnails’ ); /* * Add image dimensions * * name * width * height * crop or resize (true or false) * * 99999 means very big number */ add_image_size( ‘featured-portrait’ , 200 , 99999, false ); add_image_size( ‘featured-landscape’ , 99999, 200 , … Read more