Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter visioncreativewilson

    (@visioncreativewilson)

    I should be a little more detailed:

    I am using the default: uwpqsf-process-class.php

    function uajax_result($arg, $id,$pagenumber,$getdata){
        	$query = new WP_Query( $arg );
    	$html = '';
    		//print_r($query);	// The Loop
    	if ( $query->have_posts() ) {
    	  $html .= '<h2e>'.__('', 'UWPQSF' ).'</h2e>';
    	   while ( $query->have_posts() ) {
    	        	$query->the_post();global $post;
    			$html .= '<article><header style="border-bottom:1px solid #405D18;">';
    			$html .= '<h2e><a href="'.get_permalink().'" rel="bookmark">'.get_the_title().'</a></h2e>';
    			$html .= '</header><p class="meta">posted by</p>';
    			$html .= '<div class="entry-summary">'.get_the_excerpt().'</div></article>';
    
    		  }
    			$html .= $this->ajax_pagination($pagenumber,$query->max_num_pages, 4, $id,$getdata);
    		 } else {
    					$html .= __( 'Nothing Found', 'UWPQSF' );
    				}
    				/* Restore original Post Data */
    				wp_reset_postdata();
    		return $html;
      }//end result

    I am wondering how I can get_taxonomies() right next to the posted by

    Plugin Author TC.K

    (@wp_dummy)

    First, you shouldn’t edit the plugin file. I already provide a filter for user to customize the result output. You can read the example here.

    As for the get_taxonomies, I don’t know why you want to use this? Because it will return all registered taxonomies, regardless what are the post is.

    If you want to get the terms, you should should use wp_get_post_terms() to get the all current post term.

    Thread Starter visioncreativewilson

    (@visioncreativewilson)

    Good point. I’ve ditched the custom process-class.php and I am going to follow the output instructions you have.

    Can I insert a different function into it? I think it can but I want to be certain. for example: <?php echo bootstrapwp_posted_on();?>

    Thank you for all the help!

    Plugin Author TC.K

    (@wp_dummy)

    Yes, you can use any php function in the filter, as long as the function is a valid function.

    Thread Starter visioncreativewilson

    (@visioncreativewilson)

    What does it mean when I get the following warning:

    Warning: Missing argument 5 for uwpqsfprocess::ajax_pagination(), called in /home/albertaw/public_html/wp-content/themes/rachelbaker-bootstrapwp-Twitter-Bootstrap-for-WordPress-9bc2021/functions.php on line 1234 and defined in /home/albertaw/public_html/wp-content/plugins/ultimate-wp-query-search-filter/classes/uwpqsf-process-class.php on line 311

    Plugin Author TC.K

    (@wp_dummy)

    Oh..forgot to add the fifth parameter to the function. It should be $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id, $getdata);

    Thread Starter visioncreativewilson

    (@visioncreativewilson)

    Thanks! I actually would like your help further so I’ve sent an email.

    Thread Starter visioncreativewilson

    (@visioncreativewilson)

    Cool stuff. quick response

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Ultimate WP Query Ajax dropdown’ is closed to new replies.