Answer the question
In order to leave comments, you need to log in
How to get url by post_id in a loop?
I get the values from the Wordpress database like this:
global $wpdb;
$world_table = $wpdb->get_results( "SELECT * FROM subjects " );
$content = '';
foreach ( $world_table as $item ) {
$content .= " $item->post_id $item->subject ";
}
return $content ;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question