Skip to content

Instantly share code, notes, and snippets.

@mikeschinkel mikeschinkel/_about.md
Last active Jan 9, 2019

Embed
What would you like to do?
PHP module for use in WordPress to display Bibblio v3.9 related posts element.

The code in feature-bibblio-related-posts.php does not work and I think there is a bug in Bibblio's JS file.

prepareModuleOptions() calls getCustomUniqueIdentifierFromUrl() but does not pass it the options argument.

Note: feature-bibblio-related-posts.php is using a very thin framework called RPLib that I wrote. It auto-loads "modules" where different type modules have different traits available.

<?php
// A WordPress template example
?>
<h1>This is how you might call this Bibblio module:</h1>
<?php
\AGBlog\Biblio_Related_Posts::the_related_posts(
Bibblio::LAYOUT => Bibblio::COLUMN3_LAYOUT,
Bibblio::FONT => Bibblio::TAHOMA_FONT,
Bibblio::SEPARATE_TEXT => true,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.