Remove Single Quotes from json_encode data PHP

$thecart = str_replace(“‘”, “”, json_encode($woocommerce->cart->get_cart(), JSON_HEX_APOS));

By |July 14th, 2014|PHP|0 Comments

Reload Content in Masonry with jQuery append

jQuery(‘.leads’).click(function(){
jQuery(‘.blogspace’).html(”);
var pagel = 1;
var data = {
action: ‘my_getlatestleads’,
page: pagel,

}

[…]

By |July 11th, 2014|Wordpress 101 Guide|0 Comments

Load Post with jQuery and sort them with buttons

Code to insert on a page

I want…

eCom A Competitive Edge More Leads

Code to Insert in your function files

add_action( ‘wp_ajax_my_getlatest’, ‘get_latestresults’ );
add_action(‘wp_ajax_nopriv_my_getlatest’, ‘get_latestresults’);

function get_latestresults($sresult) {
global $wpdb;
wp_reset_postdata();

$args = array( ‘posts_per_page’ => 10 );

$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post );

$format = get_post_format($post->ID);
?>

< ?php if ( $format == 'quote' ) { //QUOTE POST FORMAT ?>

< ?php the_content(); ?>

< ?php }elseif ( $format == 'aside' ) { //ASIDE POST FORMAT ?>

< ?php the_content(); ?>
< ?php }else { ?> < ?php //ALL OTHER POST FORMATS $hide_thumbnail=( isset( $pexeto_page["hide_thumbnail"] )&&$pexeto_page["hide_thumbnail"] )?true:false; $thumb_class=''; if ( (!$format && !has_post_thumbnail($post->ID)) || $hide_thumbnail ) {
$thumb_class=’ no-thumbnail’;
}
?>

< ?php //PRINT HEADER OF POST DEPENDING ON ITS FORMAT if(!$format || $format=='video'){ $columns = isset($pexeto_page['columns']) ? $pexeto_page['columns'] : 1; $img_size = pexeto_get_image_size_options($columns, 'blog'); } if ( $format == 'gallery' ) { //PRINT A GALLERY locate_template( array( 'includes/slider-nivo-post-gallery.php' ), true, false ); }elseif ( $format == 'video' ) { ?>

< ?php $video_url = pexeto_get_single_meta( $post->ID, ‘video’ );
if ( $video_url ) {
//pexeto_print_video( $video_url, $img_size[‘width’] );
?>

By |July 11th, 2014|Wordpress 101 Guide|0 Comments

Allow inner div scrolling and hide the scrollbars | CSS WordPress 101 Guide

.section:last-child {

height:1500px !important;
overflow:scroll ;
overflow: -moz-scrollbars-none;
}

.section:last-child::-webkit-scrollbar {
display: none;
}

By |July 11th, 2014|Wordpress 101 Guide|0 Comments

Aajaxurl is not defined error – Solve it! | WordPress 101 Guide

var ajaxurl = ”;

By |July 11th, 2014|Wordpress 101 Guide|0 Comments

How to upload a file to Parse.com with Javascript | Parse.com

If you need to upload a file to parse.com –

Use the following code –

//

By |June 7th, 2014|Wordpress 101 Guide|0 Comments

Centering you content in the middle of a DIV with CSS. Simple!

/* Internet Explorer 10 */
display:-ms-flexbox;
-ms-flex-pack:center;
-ms-flex-align:center;

/* Firefox */
display:-moz-box;
-moz-box-pack:center;
-moz-box-align:center;

/* Safari, Opera, and Chrome */
display:-webkit-box;
-webkit-box-pack:center;
-webkit-box-align:center;

/* W3C */
display:box;
box-pack:center;
box-align:center;

By |May 25th, 2014|Wordpress 101 Guide|0 Comments

Gainesville FL Web Design, Graphic Design, Jquery and PHP database services!

Wp1stop.com is a full service programming boutique located in Gainesville, Fl. We specialize in highend development services and graphic design. JQuery, Javascrtipt databases, application design and WordPress development are our main areas of expertise.

There are other firms offering WordPress and development services. It’s important that you choose experts in the field […]

By |May 4th, 2014|Wordpress 101 Guide|0 Comments

Gainesville Web Development – WordPress Development

WordPress is now a widely used technology and our most recommended CMS platform. If you require Web Development in Gainesville Florida look no further and you will find us. Wp1stop offers excellent quality of service in WordPress development, if you dream it we can make it. We have been in WordPress […]

By |April 22nd, 2014|Wordpress 101 Guide|0 Comments

Express Pallets – Express-pallets.com.au

This is one of our latest PSD to WP transfers. Done for a company in Australia. Many big firms are resellers and do not perform their own work. We fill in that gap and offer development services to those firms that need our assistance. We can help you turn your […]

By |March 5th, 2014|Portfolio|0 Comments