Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Neil.Hill

    (@neilhill)

    Looked like that was the case but thought i’d ask anyway.

    Cheers for getting back to me so quickly.

    Thread Starter Neil.Hill

    (@neilhill)

    Hi,

    Sorry it took so long to get back to you. Things were being passed in using relative links.

    I’ve re-installed the plugin since then and things are rendering ok in the print out, I either had a setting wrong somewhere or I’ve changed some html that just happened to fix the problem (aside from some positioning issues, but I imagine that’s something in the html).

    Thanks for the help.

    Thread Starter Neil.Hill

    (@neilhill)

    Well I’ll be damned, Attempt 2 started working. Must’ve made a change to it at some point without noticing. I’m too ill for this.

    Just for reference if anyone else come across this, I got it working with

    <?php
    
    		if(isset($_POST['searchField'])){
    		$params=array(
    			'posts_per_page' => -1,
    			'post_type' => 'is-allowed',
    			'meta_key'=>'product',
    			'meta_value'=>$_POST['searchField'],
    			'meta_compare' => 'LIKE',
    			);
    			$query = new WP_Query;
    			$posts = $query->query($params);
    
    	?>
Viewing 3 replies - 1 through 3 (of 3 total)