mx5gr
Forum Replies Created
-
Hi Ajay,
Unfortunately I found out that this is not the case. That is, whatever parameters I have entered through the GUI (e.g. excluded content IDs) are ignored if I add the function without any arguments…
Hello,
Yes, understood about the arguments, that’s the way to do it currently. I was just referring to whether the function echo_crp could be called as echo_crp() (i.e. without arguments) and the function would respect the settings entered within the GUI.
Both the function arguments method and our own method have the drawback that someone should go to the template by hand and make the desired changes (e.g. add/remove an exclusion post ID), whereas the GUI way is more accessible and requires no template alteration.
Thank you for the information.
I have devised an external (i.e. outside the crp function) control of the IDs at the moment.
Thus, the exclusion settings etc as defined within the plugin’s GUI are only enforced when the CRP plugin automatically inserts posts within the assigned post types. In the case that it is manually added within a template as mentioned before, then all exclusions should be performed by hand.
Forum: Plugins
In reply to: [Contextual Related Posts] Ensure posts do not changeHello,
Thank you for the prompt response. After some testing, it seems to work!
Keep up the good work!
Forum: Plugins
In reply to: [Contextual Related Posts] Ensure posts do not changeHello,
I have selected multiple content items (e.g. pages, posts, glossary) to be included within the contextual related post’s settings. As far as the selection of the items to be shown is concerned, I have manually entered within every content item the IDs of the other related items and I set up the plugin to show 3 items using a RANDOM selection.
Unfortunately, the plugin does not select in random but rather displays every content item individually.If, for example, I input the IDs 751,251,333 (pages) and 222,153,211 (glossary) to the manual CRP IDs for a post, when I view the post at the frontent the plugin ALWAYS displays 751,251,333 as related posts (i.e. all the pages) and does not display anything from the glossary items. If now I enter only two IDs from the pages content item to CRP manual IDs, e.g. 751, 251, then the CRP plugin at the frontend does show these two ALWAYS and then the first glossary item (222). In other words, the plugin displays the related post IDs using the exact order that their IDs were entered within the respective per-item field, despite the fact that within the “List Tuning” tab in the plugin settings Order Posts has been set to Random and Randomize Posts is also checked.
How can we randomly display related posts per item using the manually entered IDs?
Thank you!