Similar Posts
4nton Accordion Documentation
Use the `[anton-accordion]` to display the shortcode in your pages. To use the specific category of your accordion, use the `cat` attributes. Use the category value in `cat` attributes. [anton-accordion cat=”1″] // 1 is the category ID
How to get Vimeo video thumbnails?
How to get Vimeo video thumbnails? You can use the Vimeo thumbnail generator http://video.depone.eu/ or a PHP code below. $video_id= 6271487; $url = 'http://vimeo.com/api/v2/video/'.$video_id.'.php'; $response = unserialize(file_get_contents($url)); $video_title = $response[0]['title']; $lightbox_thumb = $response[0]['thumbnail_large']; // Try to print the $response to see all parameters. // print_r($response);
Get the current post parent category ID
How to get the current post parent category ID? Just copy the codes below and paste this your template. global $post; $category = get_the_category( get_the_ID() ); $parent = $category[0]->term_id
Get the highest value via jquery
<ul> <li>Lorem</li> <li>Lorem ipsum immit</li> <li>Lorem dolor</li> </ul> // GET THE WIDTH HIGHEST VALUE var max = Math.max.apply(Math, jQuery("ul li").map(function() { return jQuery(this).width(); })); jQuery( 'ul' ).css( {'max-width': max, 'width':'100%'} ); // GET THE HEIGHT HIGHEST VALUE var max_height = Math.max.apply( Math, jQuery( 'ul li' ).map( function(){ return jQuery( this ).height(); }) ); jQuery( 'ul'…
$wpdb code collections
function xselect( $table, $form = 0, $to = 9999 ){ return "SELECT {$table}.ID, {$table}.price,{$table}.model,{$table}.make, concat(make, ' ', model) AS makemodel FROM {$table} INNER JOIN wp_posts ON {$table}.ID = wp_posts.ID ORDER BY makemodel ASC LIMIT {$form}, {$to}"; } function xget_results( $table, $form, $to ){ global $wpdb; return $wpdb->get_results( xselect( $table, $form, $to ) ); }


Many thanks if you are so kind to fairly share this information.