Hi David,
I’m trying to insert the second button after the “read more” button. I tried this code and it works but it puts the second button outside the “read-more-container” paragraph.
add_action( 'generate_after_content', function() {
$button_label = get_post_meta( get_the_ID(), 'your_button_custom_field_name', true );
$button_link = get_post_meta( get_the_ID(), 'your_button_link_custom_field_name', true );
echo '<a class="button" href="' . $button_link . '">' . $button_label . '</a>';
} );
This way I can’t show the two buttons in line with the “display” attribute. How can I fix?
Here’s the link to the archive page in question: https://migliorcarta.it/category/revolut-bank-uab/