First, thanks for the great plugin. It seems to be working great on WP 3.7.1 and does 99% of what I want it to do.
I’m working on a site for a client in which we have a custom text field (“department”) which produces a pre-headline which we show just above post titles on the blog. I’m trying to customize Popular Widget to show these pre-headlines in its tab post content.
The following code works for me within theme files (e.g., loop.php, single.php):
<?php $departments = get_post_meta( $post->ID, 'departments', true ); foreach( $departments as $department){ echo $department['department'];} ?>
I have been trying to translate the above into something that works when spliced into display_post_tab_content in Popular Widget’s functions.php file, but without success.
I would be grateful for any assistance.
Mighty thanks!