• Is it possible to add another list, a 3rd list to the already “double list” option?
    I would not mind including it myself, just not sure where to start… Are there any shortcodes or php snippets available?

    Thank you, it’s a great plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brecht

    (@brechtvds)

    Hi there,

    I’m not sure what you mean by the “double list” option? Can you send me a screenshot of what you’re referring to exactly?

    Thread Starter vcb

    (@vcb)

    Hi Brecht,

    thanks for the quick response.
    Indeed my question is kinda nonsense; I mixed it with another Plugin I’ve been trying out…

    The question I’m having, I’d like to make 3 separate related sections, based on the main categories.

    Cat 01 – > All related to this Category show up here
    Cat 02 – > All related to this Category show up here
    Cat 03 – > All related to this Category show up here

    Is there any php with what I can check against the main categories for each related article? Speaking of frontend only, does not need to be separate forms in the backend.

    Thanks for your help

    • This reply was modified 1 year, 8 months ago by vcb.
    Plugin Author Brecht

    (@brechtvds)

    I’m afraid we don’t have an easy way to achieve that at the moment.

    Technically the crp_output_list plugin hook can be used to alter the output of the widget. But you would have to reconstruct it yourself, basically.

    The code in the custom-related-posts/helpers/output.php file could be referenced for that.

    Thread Starter vcb

    (@vcb)

    Thank you, that helped me a lot and I’ve been able to get a working code within the source file of your plugin.
    Do you see any way of overwriting the function “public function output_relation( $relation ) {” from functions.php?

    I’ve tried it but when I use it with “public” I’m getting critical WP errors, without it the overwrite won’t take effect.

    Do you see a way to “hook” onto this function via functions.php?

    title=”‘. get_cat_name( $postcat[0]->cat_ID, ‘category’ ) . ‘ – ‘ . $relation[‘title’] .'”

    Basically I’ve ended up by implementing the parent-category names as prefix as alt title tag in the <div>. When someone hovers over the relational link; the “PARENT CAT – Article Title Name” shows up. It’s not what I’d need but might be a good compromise.

    Plugin Author Brecht

    (@brechtvds)

    We have the crp_output_list_item plugin hook in place that does exactly that.

    You can find some example code here: https://www.ads-software.com/support/topic/display-the-date-and-category-of-the-post/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘3rd List possible’ is closed to new replies.