Creating custom post pages in wordpress?

Discussion in 'WordPress' started by wah2war, Aug 25, 2011.

  1. #1
    Hello dear friends,
    I have an idea for my theses to create web site that will be used to collect real property data that will inform:
    1.location
    2.age of bulding
    3.price
    4.owners name
    5.recent condition with picture
    6.map of location
    I have tried different plugin but still not satisfied.
    my problem is: how to create a custom post pages, so all of that information above will be covered?
    also, the right plugin to use so I can create geotag site with wordpress? I tried google maps plugins but the loading time seems take quite slow.
    Any suggestion will be very useful for me, sorry for my bad english :)
     
    wah2war, Aug 25, 2011 IP
  2. DrDave

    DrDave Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a free plugin called Advanced Custom Fields where you can do all kinds of customization to your post pages. I have been trying it out on a new site and it seems like it could do what you are looking for.
     
    DrDave, Aug 26, 2011 IP
  3. gmonlinegames

    gmonlinegames Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Here is an example code on how to custom this with the WP custom fields:

    <?php if ( get_post_meta($post->ID, 'Location', true) ) { ?>

    <?php $values = get_post_custom_values("Location"); echo $values[0]; ?>

    <?php } ?>

    (the works like this: If you create a custom field in the post or page named "Location" and fill inn whatever text you want it will show on the page where you palced this code. Just repeat this for every detail you wanna use.)

    Here is how I use it:

    <?php if ( get_post_meta($post->ID, 'Image', true) ) { ?>
    <div><a href="<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" rel="shadowbox" style="color:#FFFFFF;"><img align="left" alt="<?php the_title(); ?>" width="685px" src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>&amp;w=685&amp;h=350&amp;zc=1&amp;q=100" style="border:0px;" /></a>
    <div style="clear:both;"></div></div><?php } ?>

    you can use this code in single.phph, page.php, index.php ect... its very powerfull :)

    Hope you can give me som reputation-points if it works :)
     
    gmonlinegames, Aug 27, 2011 IP