Title: join table with query posts
Last modified: August 20, 2016

---

# join table with query posts

 *  [Wasim alhajebi](https://wordpress.org/support/users/wassimo/)
 * (@wassimo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/join-table-with-query-posts/)
 * hello,
    and i have table called userbookmark contants fields 1-id 2- user_id 
   3- post_id
 * and i have bookmark system
    when user press bookmark it goona insert these infos
   1-id ( autoinc..) 2- user_id ( 1 for example ) 3- post_id ( 1 for example )
 * and i want make query to show bookmared posts with table above i just want to
   make join but i don’t know how in wordpress
 * i have this query
 *     ```
       <?php
       	 $args = array(
       				   'cat' => '1',
       				   'author' => '1',
       				   'post_type' => 'post',
       				   'posts_per_page' => 6,
       				   'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
       				   );
   
       	query_posts($args);
   
       while (have_posts()) : the_post();
        /* Do whatever you want to do for every page... */
       ?>
       	<a href=""><?php the_title();?></a><br />
   
             <?php
   
       endwhile;
       ?>
       ```
   
 * please please help me

The topic ‘join table with query posts’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Wasim alhajebi](https://wordpress.org/support/users/wassimo/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/join-table-with-query-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
