Requires PHP version 5.3.0

You’re getting this because you’re running PHP 5.2 on your server. The plugin requires PHP 5.3. If it did not do this check, you would get an error when it tried to use a PHP 5.3 feature. I won’t recommend a plugin as that would be offtopic and result in the question being closed ( … Read more

How to format PHP if statement? [closed]

Just some slight syntax errors in your formatting. This should help: <?php if ( function_exists( ‘z_taxonomy_image’ ) ) { ?> <img alt=”” src=”https://wordpress.stackexchange.com/questions/236591/<?php if ( function_exists(“z_taxonomy_image_url’ ) ) { echo z_taxonomy_image_url( $child->term_id ); } ?>” /> <?php } else { ?> <img alt=”<?php esc_html( get_the_title() ) ?>” src=”<?php esc_url( get_template_directory_uri() . ‘/assets/images/blank325_170.png’ ) ?>”> <?php … Read more

how to change “Read more” button position [closed]

You need to first understand how WP theme hierarchy works , then only you will be able to find which file you need to define. Below is the URL to understand how WP theme hierarchy works. https://developer.wordpress.org/themes/basics/template-hierarchy/

Where to put include php file?

First of all I must say that I don’t think this is a wordpress related question. That said I hope this following suggestion helps you go in the right direction… Basically the include(“xxx-xxx.php”); already tells you where to put the xxx-xxx.php – in this case it should go into the same directory where the ‘parent’ is … Read more

Too many if’s and else if’s ?? – Must be better way [closed]

This question probably belongs to Code Review. Anyway, you can fill your event properties inside an array, which you can iterate: $events = array( ‘opening’ => array( ‘time’ => ‘…time here…’, ‘formatted_time’ => ‘…time here…’, ‘label’ => __(‘Opening:’), // or ucfirst($type) if you want… ), ‘closing’ => array( ‘time’ => ‘…time here…’, ‘formatted_time’ => ‘…time … Read more

Use ajax response in PHP function

Instead of cooking up your own PHP file and trying to bring in WordPress functionality, put the functionality inside of WordPress using the AJAX hooks that are designed to do that sort of thing. More info here: http://codex.wordpress.org/AJAX_in_Plugins