How I can use order by of the custom post title?

You can use the order and orderby param in WP_Query argument like below: $args = array( ‘post_type’ => ‘case’, ‘post_status’ => ‘publish’, ‘meta_key’ => ‘client’, ‘posts_per_page’ => 9, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ); $query = new WP_Query( $args ); It will list out your posts by title. For more information check official WordPress … Read more

AJAX form post returns 0

your ajax post callable function action “get_news_callback” not working in your Class __construct() becuase You Can use simple WordPress action in the class. Use Action In The Class : add_action(‘wp_ajax_get_news_callback’, array($this, ‘get_news_callback’)); add_action(‘wp_ajax_nopriv_get_news_callback’, array($this, ‘get_news_callback’)); your Script also change So you Can Use below script to get your ajax response . defined(‘ABSPATH’) or die(‘Ah ah … Read more