custom fields anchor points php

Hey i have a list on the side of one of my pages which when clicking on the word it scrolls to its anchor which is set up like:

<div class=”guide-section” id=”Measuring_up”>

then the href looks like this:

<a class=”list-group-item” href=”#Measuring_up”>Measuring up</a>

My question is I have made the guide section dynamic in WordPress using custom post type and linking it which is working how I want to it but the list items are not. is there a way in PHP to get an id from custom fields which I have setup like:

custom field: guide_id
value: Measuring_up

Thank You

Read more here:: custom fields anchor points php

Leave a Reply

Your email address will not be published. Required fields are marked *