Wednesday, December 14, 2022
HomeWordPress Developmentphp - How can I get values from a customized publish kind...

php – How can I get values from a customized publish kind relying on the place I click on on my SVG map?


This is what I wish to obtain (desktop solely) : https://www.icifaubourgboisbriand.com/en/shops/

After I click on on my SVG map, I wish to show an data card for every retailer.

I’ve already created my customized publish kind “shops” and likewise the cardboard HTML.

`

<div class="store-card">

    <div class="content material">

        <div class="tackle">
            <span>Tackle</span><br>
            <span><?php the_field('store_address'); ?></span>
        </div>

        <div class="opening-hours">
            <span><?php the_field('store_opening_hours'); ?></span><br>
       
        </div>

     </div>
</div>

`

However now I do not know the best way to get my values for every retailer created in my CPT. How can I try this ? As an illustration, after I click on on a particular retailer, I need its title and its opening hours to be displayed. I have not discovered the best way to make it occur.

Many thanks !

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments