I was trying to return the post_id variable to php in order to do SELECT
in mysql, but I'm not able to work with post_id. How to make the query?
<script type="text/html" id="javo-map-tab-infobx-content">
<div class="btn-group btn-group-justified pull-right">
<a id="botaoBrief" class="btn btn-primary btn-sm" onclick="window.javo_map_tab_func.brief_run(this);" data-id="{post_id}">
<i class="fa fa-user"></i> <?php _e("Briefaaaa", "javo_fr"); ?>
</a>
From post_id
I'll make a query and receive the value of a plan for the post. So I'll decide if I show:
<a id='colorDetail' href='{permalink}' class='btn btn-primary btn-sm'>
<i class='fa fa-group'><span> Detalhes</span></i>
</a>
Or if it displays:
<a id='colorDetail' class='btn btn-primary btn-sm'>
<i class='fa fa-group'><span> Sem Detalhes</span></i>
</a>
How to make the query so my code knows what to display?