Post Navigation on Custom Posts

Home Forums Icelander Post Navigation on Custom Posts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22080
    wearegrid
    Participant

    Post Navigation on Custom Posts

    Resolved

    Hey there! Have you noticed this support service is provided FREE of charge?
    If you like the speed and accuracy of resolutions, please consider supporting me with a small donation. Thank you

    Consider a donation →

    Hi,

    How to add Post navigation to Custom Posts?

    Best regards,
    wearegrid

    #22082
    Oliver Juhas
    Keymaster

    Hi wearegrid,

    You can enable post navigation for custom post types using this PHP code in your child theme‘s functions.php file:

    function child_theme_post_navigation_post_type( $post_types ) {
    	$post_types[] = 'my-custom-post-type-key-here';
    	return $post_types;
    }
    add_filter( 'wmhook_icelander_post_navigation_post_type', 'child_theme_post_navigation_post_type' );

    FYI: Default value for array of supported post types is set to array( 'post', 'attachment' ).

    Best regards,

    Oliver Juhas
    WebMan Design

    #22083
    wearegrid
    Participant

    Thank you, that works.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.