Skip to content

Instantly share code, notes, and snippets.

@ajithrn
ajithrn / acf-repeater-loop.php
Last active April 12, 2018 11:51
Wordpress: acf repeater loop
<?php
/** Functions available
* have_rows()
* has_sub_field()
* get_sub_field()
* the_sub_field()
*/
?>
<?php if( have_rows( 'repeater_field_name' ) ): ?>
@ajithrn
ajithrn / short_content.php
Last active August 29, 2015 13:56
Wordpress: short_content
<?php
/**
* short_content generator
* @param string $mycontent content string
* @param string $after
* @param int $length
* @return string
*/
function short_content( $mycontent, $after = '', $length ) {
@ajithrn
ajithrn / gravity-forms_bootstrap.css
Last active March 1, 2017 14:36 — forked from DevinWalker/gravity-forms_bootstrap
Wordpress: GForm Bootstrap
/* ------------------------------------
Gravity Forms
---------------------------------------*/
.gform_wrapper ul { padding-left: 0; list-style: none }
.gform_wrapper li { margin-bottom: 15px }
.gform_wrapper form { margin-bottom: 0 }