-
AuthorPosts
-
September 17, 2017 at 11:45 pm #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?
September 18, 2017 at 5:33 am #853225Hey fabienneBESD,
Please, can you explain your question better?
Best regards,
John TorvikSeptember 18, 2017 at 5:53 am #853232Sure 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?September 20, 2017 at 5:22 am #854138Hi,
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-429736Best regards,
IsmaelOctober 15, 2017 at 9:41 pm #864559Hi.
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.phpBut 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.October 17, 2017 at 5:22 am #865101Hi,
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,
IsmaelOctober 17, 2017 at 5:16 pm #865363Aye, 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
October 17, 2017 at 5:29 pm #865374Solved, I used Plugin Page-links-to
October 18, 2017 at 9:38 am #865591 -
AuthorPosts
- You must be logged in to reply to this topic.