Title: Custom fields- link to post with same multi fields
Last modified: August 19, 2016

---

# Custom fields- link to post with same multi fields

 *  [jakbau](https://wordpress.org/support/users/jakbau/)
 * (@jakbau)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-link-to-post-with-same-multi-fields/)
 * Hi,
 * have a problem with linking to post with custom links. I will describe what I
   am doing. this is real estate thing and i want to sort post by:
 * -homes
    *sale *buy *rent
 * -flats
    *sale *buy
 * etc.
 * now what i want is to place on index page a link to post with the same custom
   fields. (eg. houses for sale, houses to rent, …)
    I was trying few options but
   my coding skils are lets say not perfect 🙂 any ideas how to solve that problem?
   i looked throu forum, but can’t find good answer.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jakbau](https://wordpress.org/support/users/jakbau/)
 * (@jakbau)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-link-to-post-with-same-multi-fields/#post-1572296)
 * i have found something like this to list special fields:
 *     ```
       <?php rewind_posts(); ?>
               <?php $post = $wp_query->post;
       			  $forsale = new WP_Query('category_name=For Sale&showposts=6');?>
       		<?php while ($forsale->have_posts()) : $forsale->the_post(); ?>
       ```
   
 * but dont really know what to do, is it helpfull at all?
 *  Thread Starter [jakbau](https://wordpress.org/support/users/jakbau/)
 * (@jakbau)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-link-to-post-with-same-multi-fields/#post-1572353)
 * any 1 can help please ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom fields- link to post with same multi fields’ is closed to new 
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [jakbau](https://wordpress.org/support/users/jakbau/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-link-to-post-with-same-multi-fields/#post-1572353)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
