Jeditable Plugin working as it should – scope issue?

I think you will need to include some type of WP core file into the save.php file (I could be wrong). Since this file isn’t being called specifically by your plugin (or WP for that matter), it won’t have all of the variables that WP has to offer. Try adding this to the top of … Read more

display loop only if a post meta data exist

If you want to avoid preprocessing the data, this will work (though it’s definitely the quick and dirty method): <?php while (have_posts()) : the_post(); ?> <?php $data = get_post_meta( $post->ID, ‘key’, true ); ?> <?php if( $data != ” ) : ?> <!– info –> <?php endif; ?> <?php endwhile; ?> Otherwise (and this is … Read more

How to parse without changing the characters case (lower and upper) in wordpress the_content?

Kitefr, (this isn’t really a WordPress question, but a php one) but you could usepreg_replace_callback, in which you define your own function to handle the the replacement. For instance, $text = “The quick brown fox jumped over the Quick dog.”; $text = preg_replace_callback( “/quick/si”, ‘my_replace’ , $text ); function my_replace($matches){ return ‘<strong>’.$matches[0].'</strong>’; } This replaces … Read more

allow html characters on eshop data entry boxes

Reading a little… (cause that is the problem, we don’t read) I found the solution for my problem, “htmlspecialchars_decode” function would do the trick, now I wonder how to close or erase a post in here ^^. <?php if (isset($eshop_product[‘details’])) echo htmlspecialchars_decode($eshop_product[‘details’]); ?>

Loop doesn’t work in single-product.php page but works at normal page

A part of the problem was that “caller_get_posts” is deprecated, it is now “ignore_sticky_posts”. The main problem was this line “$post_type = $wp->query_vars[“product”];”, i removed this one and replaced the $post_type with ‘product’. This code works! <?php $tax = ‘product_category’; $tax_terms = get_terms($tax,’hide_empty=0′); if (is_array($tax_terms)) { foreach ($tax_terms as $tax_term) { $args=array( ‘post_type’ => ‘product’, … Read more