• I am using WP MVC for wordpress and am having the following issue. Here is an example scenario. I would like to allow a user searching capabilities on the event index.php page. For example, I would like them to be able to find all events by venue or speaker and have dropdowns for venue and speaker. How is this possible using the paginate function in the events_controller.php?

    Here is the current code:

    public function index() {
    
    		$this->params['page'] = empty($this->params['page']) ? 1 : $this->params['page'];
    
    		$this->params['conditions'] = array('is_public' => true);
    
    		$collection = $this->model->paginate($this->params);
    
    		$this->set('objects', $collection['objects']);
    		$this->set_pagination($collection);
    
    	}

    How do you tell paginate that you would to join or better yet where and how do you join in this case?

    http://wordpress.org/extend/plugins/wp-mvc/

  • The topic ‘[Plugin: WP MVC] How to perform a join using the paginate method?’ is closed to new replies.