• Resolved PedroDK

    (@pedrodk)


    Hi, I was inspired by your answer on this thread (now closed): https://wordpress.org/support/topic/post-carousel-block-disable-link-on-title/.
    I want to add a filter to like the one you suggest: ‘uagb_single_post_link_carousel’

    But instead of just an empty # I want to add an anchor to thehref of links of Post Title.

    Ther eason is that my client wants the title links to go to an archive page and then through an anchor to scroll to the relevant post item on that archive.

    Hope you can follow me… 🙂

    Thanks Peter

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mohsinbsf

    (@mohsinbsf)

    Hi @pedrodk,

    I am sorry for the inconvenience.

    Please use the below filter in the functions.php of the child theme to achieve your goals.

    add_filter( 'uagb_single_post_link_carousel', function() {
    	$post_type_by_ID = get_post_type( get_the_ID() );
    	return get_post_type_archive_link( $post_type_by_ID );
    });

    Please try and let me know how it goes.
    Have a nice day!

    Plugin Support BSF – Judith Pete

    (@judith0)

    Hi @pedrodk,

    It’s been long since we heard from you. I am going ahead to mark this thread as resolved.

    Please feel free to open a new thread in case of any other queries.

    Regards.

    Judith.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Anchors on links in Post Carousel’ is closed to new replies.