Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #507083

    Hi there,

    i have a custom post type for logos(added as thumb) and links (added inside a metabox).
    i would like to add a post slider with these posts but instead of linking to permalink to link to the above metabox link.

    how could i achieve this?
    thanks,
    C

    #507260

    Hi cezarneaga!

    When you say “metabox” you are referring to custom fields added to each post?

    Cheers!
    Elliott

    #507397

    yes

    cheers

    #507462

    Hi!

    Elliott is out this time so I will be handling this request if you don’t mind. Anyway, I’m not sure how you created the custom post type but if you want to modify the post slider element, edit the config-templatebuilder > avia-shortcodes > postslider.php file. You might need to modify line 290:

    $link 		= get_permalink($the_id);
    

    This function might come in handy: https://developer.wordpress.org/reference/functions/get_post_meta/

    Cheers!
    Ismael

    #509062

    found it and it worked
    for others, replace with: get_post_meta( $the_id, ‘name_of_custom_field’,true );

    thanks,
    C

    #509071

    Hey!

    Thank you for sharing your solution! Have great weekend :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘post slider customisation’ is closed to new replies.