4
$yarpp->cache->enforce($reference_ID, false); // enforce the cache, but don't force it
7
$keywords = $yarpp->cache->get_keywords($reference_ID);
8
$output .= "<p>body keywords: {$keywords['body']}</p>";
9
$output .= "<p>title keywords: {$keywords['title']}</p>";
12
$output .= '<p>'.__( 'These are the related entries for this entry. Updating this post may change these related posts.' , 'yarpp').'</p>';
15
$output .= "<p>last updated: ".$wpdb->get_var("select max(date) as updated from {$wpdb->prefix}yarpp_related_cache where reference_ID = '$reference_ID'")."</p>";
19
$output .= '<style>#yarpp-related-posts ol li { list-style-type: decimal; }</style>';
21
while (have_posts()) {
23
$output .= "<li><a href='post.php?action=edit&post=" . get_the_ID() . "'>" . get_the_title() . "</a>";
24
$output .= ' (' . round(get_the_score(),3) . ')';
28
$output .= '<p>'.__( 'Whether all of these related entries are actually displayed and how they are displayed depends on your YARPP display options.' , 'yarpp').'</p>';
30
$output .= '<p><em>'.__('No related posts.','yarpp').'</em></p>';