$_html is empty when var dumped

so I turn to you guys to help me see what I am doing wrong here. First thing your doing wrong is over complicating a simple effective API. Your code makes no sense. Your mixing functions that echo output with arbitrary html mark up that gets assigned to a non existing class property that nothing … Read more

Retrieve Array from within Array [closed]

It looks like you are using Advanced Custom Fields. Your “Product ID” is storing the object, instead of just the ID. Below shows you how you can access the post ID, otherwise just change your field saving option for Product ID. It’s a simple foreach statement. foreach( $pages as $page ) { echo $page[‘product_id’]->ID; }

Really slow WordPress site [closed]

After reviewing a WebPageTest of your site, it looks like you’re loading a lot of different JavaScript and CSS files. I would really recommend to minify and combine your JavaScript and CSS. You can use CloudFlare (which I highly recommend), W3 Total Cache, or WP Minify Fix. Be careful though, often times minification can break … Read more

What does this if-statement do?: if($pages=’ ‘) {}

$pages is an optional parameter. If not set, $pages will equal an empty string. So if($pages == ”) checks to see if that parameter has been set. In this call, the parameter has not been set: kriesi_pagination(); In this call, the parameter has been set: kriesi_pagination(5); In the tutorial link that you posted, read this … Read more

Please help to know why single.php crashes after I add this code [closed]

You’re missing <?php and ?> <?php if( in_category( ‘movies’ ) ) { // this (end php, start html) -> ?> <span style=”font-size:16px”> <strong>Movie:</strong> <?php the_field( ‘movie_name’ ); ?> (<?php the_field( ‘movie_year’ ); ?>)<br/> <strong>IMDb:</strong> <?php the_field( ‘imdb_link’ ); ?><br/> <strong>Rotten Tomatoes: <?php the_field( ‘rt_link’ ); ?> <br/><br/> </span> <br/><br/> <?php // <- this (end html, … Read more