Link to page with parent post on subsequent post
-
Here is a test site and page showing the issue.
https://thebrightstar.org/listings/
I tried adjusting the code to add $post->ID, but everything I did just removed the value altogether or added another random value.
$term_id = $location->parent;
$term_name = get_term( $term_id, $post_ID, ‘acadp_locations’ )->name;
$name = $term_name;if ( $has_location && $locations = wp_get_object_terms( $post->ID, ‘acadp_locations’ ) ){
$location_links = array();
foreach ( $locations as $location ) {
$location_links[] = sprintf( ‘%s‘, esc_url(acadp_get_location_page_link( $location ) ), esc_html( $location->name) ).’, ‘.$name;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Link to page with parent post on subsequent post’ is closed to new replies.