Skip to content

Instantly share code, notes, and snippets.

View dibakarjana's full-sized avatar
😀

Dibakar Jana dibakarjana

😀
View GitHub Profile
@dibakarjana
dibakarjana / index.html
Last active December 18, 2015 23:28
jQuery Variable Height
<html>
<head>
<meta charset="UTF-8">
<title>jQuery Variable Height</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
</head>
<body>
<div id="col1"></div>
<div id="col2"></div>
<div id="sidebar">asdsd <br>asdasd</div>
@galengidman
galengidman / index.php
Created March 28, 2014 19:01
get ACF image size URL by ID
<?php
// first, get the image ID returned by ACF
$image_id = get_field('my_image_field');
// and the image size you want to return
$image_size = 'thumbnail';
// use wp_get_attachment_image_src to return an array containing the image
// we'll pass in the $image_id in the first parameter