Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #853174

    I am wondering, if it would be possible to use Enfolds Port Type “LINK” to create a Link Library.

    Basicly I want to create a library of Links to studies, that can be sorted by categories.
    I have seen the Link Post Type, but am unsure how to use it the best way to achive what I want.

    Do you have a great idea?

    #853225

    Hey fabienneBESD,

    Please, can you explain your question better?

    Best regards,
    John Torvik

    #853232

    Sure I can.
    I would like to create a simple Link directory.
    I like to link to studies, where each study is assigned one or more topics.
    User shall be able to click on topic and gets shown all studies tagged with that copy.
    The link I provided showed you the old directory I used.
    I am now wondering if I can achicve sth similar in enfold theme withe the Post Type “Link” that is provided.
    Can you follow now?

    #854138

    Hi,

    You can try the magazine element but it doesn’t support link post format by default so you have to do one of the following modifications.

    // https://kriesi.at/support/topic/enfold-magazine-post-with-link-format-does-run/#post-435156
    // https://kriesi.at/support/topic/enfold-magazine-post-with-link-format-does-run/#post-429736

    Best regards,
    Ismael

    #864559

    Hi.

    I am trying to follow the instructions given in the links you mentioned.
    I am looking to replace this line
    $link = get_permalink($entry->ID);
    with this
    $link = get_post_format($entry->ID) == 'link' ? avia_custom_link_content_filter($entry->post_content) : get_the_permalink($entry->ID);

    In the following file:
    /enfold/config-templatebuilder/avia-shortcodes/magazine.php

    But all I can find is this in line 614:
    $link = get_post_meta( $entry->ID ,'_portfolio_custom_link', true ) != "" ? get_post_meta( $entry->ID ,'_portfolio_custom_link_url', true ) : get_permalink( $entry->ID );

    Am I right to assume that I just replace this part
    : get_permalink( $entry->ID );

    and leave the rest alone?
    Sorry for the maybe stupid question.

    #865101

    Hi,

    Thank you for the update.

    Below line 614, add this code.

    $link = get_post_format($entry->ID) == 'link' ? avia_custom_link_content_filter($entry->post_content) : $link;
    

    Please don’t forget to add the “avia_custom_link_content_filter” function in the functions.php file.

    Best regards,
    Ismael

    #865363

    Aye, thank you, I have a few links now.
    Problem, I still need to click through to the post to get to the actual article.
    Is there a way to click on the title in magazin view and link directly to the link in post content?

    Thank you

    #865374

    Solved, I used Plugin Page-links-to

    #865591

    Hi,

    Great, glad you found a solution and thanks for sharing. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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