Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #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”

    Toolset's request

    #735184

    Hey 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">  &rarr;</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">  &rarr;</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,
    Ismael

    #736677

    Thank 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! :)

    #738190

    Hey!

    The same variables are being used in the single post page. If you remove it, you’ll find an empty single post page.

    Regards,
    Ismael

    #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,
    Roger

    #885909

    Hi,


    @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,
    Ismael

    #887459

    Hi,

    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

    https://pastebin.com/atYks3gZ

    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ünter

    #893924

    I am also having this issue. Cannot access templates or fields on the front-end. Very frustrated. Any help would be most appreciated.

    #894139

    Hi 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,
    Victoria

    #894174
    This reply has been marked as private.
    #894464

    Hi 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-798773

    Best regards,
    Victoria

    • This reply was modified 6 years, 11 months ago by Victoria.
    #894905

    Using 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.

    #895086

    Hi,

    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,
    Ismael

    #895306

    No. All posts were entered using the default editor.

    #896531

    Hi,

    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,
    Ismael

    #1074522

    Not 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

    #1074526

    I 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?

    #1074720

    same 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.

    #1076136

    Hi,

    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,
    Basilis

    #1076476

    What?

    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.

    #1078678

    Hi,

    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ünter

    #1112698

    Hi Blutvampir, ich verstehe auch nicht warum dir unterschiedliche Moderatoren merkwürdige Antworten gaben. Konntest du dein Problem lösen? Ich stehe gerade vor selbigem. ..

    #1113259

    Hi madsonic,

    Please start a separate thread, describe your issue there and give us a link to your website.

    Best regards,
    Victoria

    #1115563

    I 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.

    #1116057

    Hi,


    @sky19er
    : Did you use the advance layout builder for your listings? Please open a new thread and post the login details there. We will close this thread now.

    Best regards,
    Ismael

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘Which function is responsible to display the_content().’ is closed to new replies.