-
AuthorPosts
-
January 16, 2017 at 4:07 pm #734129
I’v been in contact with the authors of popular plugin “Toolset.”
They asked me to get in touch with you guys to get information on what function is responsible for displaying “the_content”January 18, 2017 at 8:29 am #735184Hey Legendaryz,
Thank you for using Enfold.
Which element or template are you referring to? Is this the post item? If it is, you can find the function in the includes > loop-index.php file.
$current_post['content'] = $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> →</span>') : get_the_excerpt(); $current_post['content'] = $blog_content == "excerpt_read_more" ? $current_post['content'].' <div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div> ' : $current_post['content'];
It’s the get_the_content or the get_the_excerpt function, depends which option is enabled in the backend.
Best regards,
IsmaelJanuary 21, 2017 at 1:33 am #736677Thank you very much, but I got this response when sharing your answer:
“That response looks like it is describing how the content is output on an archive rather than for a single post.”Do you mind also providing answer for single post, it would be most helpful.
Hoping to hear from you soon! :)January 25, 2017 at 8:41 am #738190Hey!
The same variables are being used in the single post page. If you remove it, you’ll find an empty single post page.
Regards,
IsmaelDecember 5, 2017 at 1:49 pm #885046@Legendaryz: Did you solve this? It seems that there are no function to this in Enfold and no way to get Toolset to work. Am I right?
Regards,
RogerDecember 7, 2017 at 5:12 am #885909Hi,
@lipstick: Where can we see the issue? Like we said, the theme uses the get_the_content or the get_the_excerpt function, depend on the settings.“That response looks like it is describing how the content is output on an archive rather than for a single post.”
That is not true. The same function is used for the single post page unless the advance layout builder is being used.
Best regards,
IsmaelDecember 11, 2017 at 3:35 pm #887459Hi,
Thank you for using our theme.
I modified the code for the ALB posts and pages a bit to fit better into general WP behaviour on pageload.
Can you please update the file enfold\template-builder.php with the raw paste content of
or download the complete file from
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_2/template-builder.php
Don’t forget to make a copy of the original file for a fallback (make sure you use Enfold 4.2).
Let us know, if the changes fix the problem.
Best regards,
GünterJanuary 6, 2018 at 1:53 am #893924I am also having this issue. Cannot access templates or fields on the front-end. Very frustrated. Any help would be most appreciated.
January 6, 2018 at 5:59 pm #894139Hi 01BigD10,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJanuary 6, 2018 at 7:06 pm #894174This reply has been marked as private.January 7, 2018 at 8:31 pm #894464Hi 01BigD10,
Not sure that this is theme related. Can you explain a bit more on how to reproduce the issue?
Also, I think you need to increase PHP Post Max Size and PHP Max Upload Size
https://kriesi.at/support/topic/failed-to-load-resource-the-server-responded-with-a-status-of-403-forbidden/#post-798773Best regards,
Victoria- This reply was modified 6 years, 11 months ago by Victoria.
January 8, 2018 at 8:41 pm #894905Using Toolset Plugin to create custom posttypes “Research Summaries”. Created a template per instructions. And the theme doesn’t recognize or use the template. Nor am I able to figure out how to access the 2 fields used in the loop (investigor & avf-project-id). I can access the fields using shortcodes within the WYSIWYG editor. But can’t figure out how to access them in the single post template.
January 9, 2018 at 5:22 am #895086Hi,
Using Toolset Plugin to create custom posttypes “Research Summaries”. Created a template per instructions. And the theme doesn’t recognize or use the template.
Are you using the Advance Layout Builder for the post? If the advance layout builder is active, it’s going to use the template-builder.php file instead. Please switch to the default editor.
Best regards,
IsmaelJanuary 9, 2018 at 5:56 pm #895306No. All posts were entered using the default editor.
January 12, 2018 at 11:40 am #896531Hi,
Please edit the single.php file, look for this code.
get_template_part( 'includes/loop', 'index' );
Replace it with:
if (get_post_type($current_post['the_id']) == 'post') { get_template_part( 'includes/loop', 'index' ); } else { get_template_part( 'includes/loop', 'types' ); }
Duplicate the loop-index.php file then rename it to loop-types.php file. Edit it then go to line 153.
$content_output .= $content;
Replace it with:
the_content();
Best regards,
IsmaelMarch 4, 2019 at 9:25 pm #1074522Not anymore woirking since last enfold update.
If you use enfold functions within types content, the enfold functions will all retourn blank instead of content / formatting /stuff.
as enfold doesnt apply the functions of visual builder correctly on the_content() somhow.It did work with the older version
March 4, 2019 at 9:32 pm #1074526I did downgrade to version 4.5.3 working again fine. Upgrade to newest version 4.5.4, breaks code.
All debuggin infos added. Please find a fix, I did search for 3h and didnt find any. Can you please check what you did change in the latest update?
March 5, 2019 at 8:56 am #1074720same issue on other page, where I only have a small
echo do_shortcode("[av_button label='test' link='manually,https://test.ch' link_target='_blank' size='medium' position='left' label_display='' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color-highlight' custom_bg='#444444' custom_font='#ffffff' av_uid='' admin_preview_bg='']")
returns as blank.
March 7, 2019 at 11:37 pm #1076136Hi,
echo do_shortcode('[av_button label='test' link='manually,https://test.ch' link_target='_blank' size='medium' position='left' label_display='' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color-highlight' custom_bg='#444444' custom_font='#ffffff' av_uid='' admin_preview_bg='']')
Try like this please
Best regards,
BasilisMarch 8, 2019 at 10:00 pm #1076476What?
My code is working PHP Code. Your code is beginner error at best.
You cant do ‘ within ‘ stuff. Otherwise you would need to change ‘ to \’. But this is beginner level.
So when I fix the errors in your php stuff, it returns also nothing.
As it is the same in the end.March 14, 2019 at 12:58 pm #1078678Hi,
Sorry for the problems you have.
There is a bug with shortcodes in 4.5.4 that will be fixed in 4.5.5 which is very close to release.
I did not follow the whole thread but kindly wait for the release and then check again if your problem is fixed.Thank you for your patience.
Best regards,
GünterJune 23, 2019 at 11:14 am #1112698Hi Blutvampir, ich verstehe auch nicht warum dir unterschiedliche Moderatoren merkwürdige Antworten gaben. Konntest du dein Problem lösen? Ich stehe gerade vor selbigem. ..
June 25, 2019 at 3:47 pm #1113259Hi madsonic,
Please start a separate thread, describe your issue there and give us a link to your website.
Best regards,
VictoriaJuly 3, 2019 at 8:22 pm #1115563I think I’m having the same, or related, issue, and it’s persisting even though the theme is now up to 4.5.7. I’m trying to call post content using the_content() in my Search & Filter Pro queries on http://cb0.a81.mwp.accessdomain.com/services/property-management/properties/ and the listings are coming up blank (see https://screencast.com/t/Uuq2R5fVt ), but only in conjunction with using the ajax to show the results. So, on first page load, the listings show, but when you select a different Property Type or Geographic Region, you can see the results are queried — the number of results is correct — but the_content() is blank. If you then refresh the page, the listings show again. I’ve spoken with S&F Pro support and they say it’s the the_content(); line that’s failing. Do you have any suggestions for a fix? Thanks and lmk if you have any questions or if I should start a new topic.
July 5, 2019 at 3:56 pm #1116057 -
AuthorPosts
- The topic ‘Which function is responsible to display the_content().’ is closed to new replies.