Tag Archives: how to

How to get the featured image url from a WordPress post

How to get the featured image url from a WordPress post

This is going to be a very quick recipy.

Two lines I always use in order to obtain the url for the featured image, full size. This could be useful if you want full control of the code, like placing the image as a background for a box, instead of relying on the img tag that the_post_thumbnail() outputs.

Here you are:

<?php
     // GET IMAGE LINK
     $thumbfull = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
     urlfull = $thumbfull['0']; 
?>

Now you can use $urlfull wherever you wish.

Custom logo on login form for WordPress

Custom logo on login form for WordPress

Sometimes you want to deliver a fully customized WordPress installation and theme, and this is a very simple fix that’ll step up your game.

By adding the following function into the functions.php file (or creating your own functions.php file for a child theme), you are telling WordPress to grab the logo from somewhere else in order to integrate the login form into the whole corporate image.

Infinite scrolling gallery

Infinite scrolling gallery

Explosive cocktail of jQuery plugins you probably are very used to seeing around the web and didn’t know.

In a nutshell, Isotope, the chemical arrangement by David Desandro, helps create a grid style layout with totally out of the box responsive and fluid properties and many options; Infinite Scroll, by Paul Irish, will ease the navigation not having to click through pages anymore (yes, you’re right, just like Google images, Twitter, Facebook, Pinterest…); Inview, by Protonet, applies some nice effects to the blossoming content; and finally Lightbox, by Lokesh Dhakar provides an overlay to display full screen images when clicked.

Pages: 1 2 3 4 5 6 7 8