Hi,
we display entries from categories with masonry gallery.
it displays thumbnail and title from a entry.
we dont want to link to the main entry.
the elements in the gallery should link
to a pdf-file, which link is provided by a custom-field in each entry
Hi quebag!
Around line 402 in the /enfold/config-templatebuilder/avia-shortcodes/helper-masonry.php file you should see where the link is set.
$this->loop[$key]['url'] = get_permalink($id);
You could try using this function to grab a custom field from the post, https://developer.wordpress.org/reference/functions/get_post_meta/.
It’s most likely going to take a bit more work than that though.
Best regards,
Elliott
sorry,
custom fied = dateilink
how must i setup the code
$this->loop[$key][‘url’] = get_permalink($id);
Hey!
Maybe this would work.
$this->loop[$key][‘url’] = get_post_meta( $id, 'dateilink', true );
Best regards,
Elliott
great. thank you !!