PHP code example of wp-forge / wp-query-starts-with

1. Go to this page and download the library: Download wp-forge/wp-query-starts-with library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wp-forge / wp-query-starts-with example snippets







$query = new WP_Query(
	array(
		'post_type' => 'post',
		'starts_with' => 'Pre', // This is case-sensitive and must match the first part of the post title exactly.
		// ...
	)
);