• Resolved Anonymous User 13901880

    (@anonymized-13901880)


    I use the plugin on my regular posts and I set the heading in the plugin options to “<h2>Related Posts</h2>”.

    Now, I want to include the plugin on my new custom post type but now automatically at the end of the page but manually. So I excluded the page type from the plugin settings and looked for a way to include it manually. As far as I know there are shortcodes and the custom php function.

    Shortcode didn’t work well because it has a strange list style not the style it has on regular posts (the good side: you can remove headings here).

    When I use the php function it looks great but there is one problem! I would like to edit the heading. Removing it would be even better, then I can just put my own h2-Tag above the related posts.

    Any ideas? Thanks for this great plugin and your support!

    https://ww.wp.xz.cn/plugins/contextual-related-posts/

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

    (@ajay)

    You can use echo_ald_crp('is_widget=1') which will remove the heading.

    Thread Starter Anonymous User 13901880

    (@anonymized-13901880)

    Thank you, I tried your solution. It removes the heading but it doesn’t solve my problem: the output looks exactly like when using the shortcode. So I have an ugly list-style output and not the custom style I put in the plugin-options. Any ideas how to fix that?

    Plugin Author Ajay

    (@ajay)

    These are the default styles:
    https://plugins.trac.ww.wp.xz.cn/browser/contextual-related-posts/trunk/css/default-style.css

    If you’re using the code with is_widget=1, currently, you’ll need to style .crp_related_widget instead of .crp_related that the default-style.css contains.

    You can add the code in the above CSS file into the Custom styles box.

    Thread Starter Anonymous User 13901880

    (@anonymized-13901880)

    That’s it, thank you!

    Plugin Author Ajay

    (@ajay)

    You’re welcome. Do consider a good review of the plugin 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove/edit heading on certain pages’ is closed to new replies.