Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42137

msebald on "[Plugin: WordPress SEO by Yoast] og:image set to default image but article/page has own images"

$
0
0

Sounds promising! Thank you! :-)

I get the images Wordbooker is retrieving from a function:

function NggRandom($galleryId = 0) {
$randompictures = nggdb::get_random_images(5, $galleryId);
$randompictures_output = "";
foreach ($randompictures as $randompictures_value) {
$randompictures_output = $randompictures_output.'<img src="'.$randompictures_value->thumbURL.'" height="80" alt="'.$randompictures_value->alttext.'" title="'.$randompictures_value->alttext.'"/>';
}
return $randompictures_output;
}

I "echo" the function with a gallery id before the_content() in the template I use for the dive sites listed on the website.


Viewing all articles
Browse latest Browse all 42137

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>