In this guide I will describe how to integrate and optimize travis CI to your gradle project. Before we begin, we need to enable and caching and parallel for our gradle project. In order to enable those, simply put org.gradle.caching=true org.gradle.parallel=true in your gradle.properties file.…
When I was working on a quick Schema.org Microdata project, I wanted to get Genesis Featured Image for each post as well as all other images attached in the post body. This code snippet will get just the Featured Image URL without any HTML tags in Genesis sites, $featuredimage = genesis_get_image(…
If you want to get Tag ID, when you already have the Tag Name, following code snippet can be used. $tag = get_term_by ( 'name', single_tag_title( '', false ), 'post_tag' ); $tag_id = $tag->term_id; If you don’t have the Tag Name already, this code can be used. $tag_id =…