WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
[resolved] Finding and using values in a list (2 posts)

  1. iHanky
    Member
    Posted 1 year ago #

    I managed to used certain values to build single pages.
    (ex. http://www.larmit.nl/caresse/index.php/dealers/dealerpagina/?pdb=23)
    Now I'm trying to build the map on this page: http://www.larmit.nl/caresse/index.php/dealers/
    using the information in my database. What code do I use to extract this information?
    This doesn't work:
    <?php $this->record->main->fields->city->print_value ?>
    <?php $this->record->main->fields->x_coordinaat->print_value ?>
    <?php $this->record->main->fields->y_coordinaat->print_value ?> etc
    probably because these are codes I use for the single-record-page.

    It has to fit in here:
    " style="position:absolute; left:<?php pdb-x_coordinate ?>px; top:<?php pdb-y_coordinate ?>px; z-index:10;"href="http://www.caresseboxsprings.nl/index.php/dealers/<?php pdb-ID ?>/" ><b></b><span><?php pdb-city ?></span>
    and the loop has to place all the cicrles at the right position.

    I'm kinda stuck here right now.

    Tnx in advance!

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    You just have to access the value property of the field object like this:

    $this->record->main->fields->city->value

    You were very close!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic