Multi str_replace php
str_replace(
array(
'<',
'>',
'/',
',',
'{',
'}',
'?',
'*'
),
'',
$value[0]->post_content
)
Colorbox default parameters defaults = { transition: "elastic", speed: 300, width: false, initialWidth: "600", innerWidth: false, maxWidth: false, height: false, initialHeight: "450", innerHeight: false, maxHeight: false, scalePhotos: true, scrolling: true, inline: false, html: false, iframe: false, fastIframe: true, photo: false, href: false, title: false, rel: false, opacity: 0.9, preloading: true, current: "image {current} of {total}",…
The7 pagination in custom WP_Query, just copy the code below and paste it in your functions.php. dt_paginator( $query, array( 'class' => 'paginator no-ajax', 'ajaxing' => false ) ); [php] Example: [php] $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'cat' => '8', 'posts_per_page' => 8, 'paged' => $paged ); $query =…
Get the check-box label text $meal_obj = get_field_object( 'meals', $product->id ); if( $meal_obj['value'] ){ foreach( $meal_obj['value'] as $meal_label ){ echo $meal_obj['choices'][$meal_label].', '; } }else{ $html .= 'No Meals'; }
3 Columns HTML <div class="one-third first">Column 1</div> <div class="one-third">Column 2</div> <div class="one-third">Column 3</div> CSS .one-third { width: 32%; float: left; margin-left: 2%; } .first { margin-left: 0; } Use the HTML/CSS Column Generator for easy job.
Hi guys, having a trouble on how to merge your personal and friends activity stream using Buddypress WordPress plugin? Codes below may help you to solve the issue. The codes will apply only in your personal activity but it is includes the friends activity also. $user_id = '1,2,3'; // this is the list of user…
Custom and simple jQuery tabs, no library needed. This example is very easy and light to your page. Follow and copy the codes below. DEMO Tab 1 Tab 2 Tab 3 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the…