WordPress plugin NOT get $adds->id into query with HREF + Modal
$10 USD
Paid on delivery
Need a PHP specialist who can help me getting a record_id .
In below href I put a record_id = $adds->id
Via the href I start a modal and in the modal I start: function customer_advertisement_function().
The function runs well.
Only need the record_id to get the right query result.
How can I get the record_id = $adds->id into the query?
foreach($result as $adds) {
$content .= '<a class="fusion-modal-text-link" data-toggle="modal" data-id=".$adds->id." id=".$adds->id." data-target=".editadd" title="'.__('Edit', 'agent-plugin').'" href="#">
}
function customer_advertisement_function($atts) {
$uid = $current_user->ID; // correct filled
$query = "SELECT *
FROM ".$wpdb->prefix."agent_adds
WHERE id = "'.$adds->id.'"
AND user_id = $uid ";
}
add_shortcode('customer_advertisement', 'customer_advertisement_function');
Realization: today
Milestone: 1 released after finishing project
Dev: on my server
Project ID: #13357447