• 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

    (@jakbau)

    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

    (@jakbau)

    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.