Customise related posts output (works already, needs adapting) - Wordpress Solution
[Solved] - Customise related posts output (works already, needs adapting) - Wordpress Solution |
---|
Try following codes |
I need to manually relate posts and display these at the bottom of a post. I have the output working perfectly for a different plugin (YARPP), which offers a lot more flexibility in the output, but need to switch this over to a manual plugin.
Not too fussed which one is used, but [[LINK href="http://wordpress.org/extend/plugins/microkids-related-posts/"]]Microkid's related posts[[/LINK]] looks like the best option.
Here's the code we're using to output at the moment - I need this substituted to work with Microkid's output.
///Custom functions used:
///Actual code And here's what the output looks like (need to do exactly the same for the new plugin) ///Output as follows: And here's the whole lot posted elsewhere (in case that's easier to refer to): [[LINK href="http://snipt.org/xPok"]]http://snipt.org/xPok[[/LINK]] Solution - 1You mean something like that (I don't think I understood you...):
Solution - 2Hi Jon, There are 2 function that need to be change "wcs_build_tag_list_icononly" and new the_title_attribute function that I name "custom_the_title_attribute", this is because we dont use any loop so have to pass the post ID manually. Please try my code Blind code so could be any error.. |
Date: 2022-10-21 05:13:50 |
Category: Wordpress |