• My site is: https://ecf.1e9.myftpupload.com/

    All of a sudden, the external links on the blog page are not working. They show up in the post, but not the summary on the blog page. Also, featured images are not showing up for new posts. I have disabled all plugins and flushed the cache.I’ve checked the text editor and the ahref has proper structure has Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • lisa

    (@contentiskey)

    I am confused by some of the short codes that are showing on the front end.
    Can you point to one of the pages that has a link that is not working.
    Which theme are you using?
    There seems to be some sort of delay to load the images on page.

    Thread Starter scottyknoxvillw

    (@scottyknoxvillw)

    I am using eliason theme bu Qode. The page that is not showing the links is:
    https://ecf.1e9.myftpupload.com/blog/large-image/

    Thank you for your help

    Thread Starter scottyknoxvillw

    (@scottyknoxvillw)

    Sorry, I had visual composer turned off. That’s why you were seeing the shortcodes-I’ve fixed that now. The theme is called Elision by qode interactive

    lisa

    (@contentiskey)

    are you referring to links in the post excerpts “not working”?

    contentiskey,

    I would need to see the code but I believe the main blog page is showing an exerpt without any HTML leaving no links or bold or italics, etc. Shouldn’t be a problem to rework that line of php.

    Featured images need to be added to the theme, which this one may not be using. It’s a simple lineof code you can add to the functions.php file.

    Let me know if you need help or can provide a link to the code that I could edit for you.

    Hi Scottyknoxvillw,

    the_excerpt() function, which is probably being used to generate the excerpts on the blog page, do not parse certain HTML tags including <a> (links). Therefore any links that you may have will not show up as HTML links but instead plain text (which is what your seeing).

    If youd like to preserve links (and other html tags) you’ll need to write your own custom function to use to display excerpts.

    I came across a fairly decent article that describes the process, and provides some working code:

    https://bacsoftwareconsulting.com/blog/index.php/wordpress-cat/how-to-preserve-html-tags-in-wordpress-excerpt-without-a-plugin/

    You may also try using a filter to pass in accepted html tags:

    add_filter( 'get_the_content_limit_allowedtags', 'get_the_content_limit_custom_allowedtags' );
    
    function get_the_content_limit_custom_allowedtags() {
       // Add custom tags to this string
       return '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>';
    }

    reference
    Evan

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @doc4, Sorry, please don’t ask people to contact you, or solicit contact information from people. If you feel strongly that you person asking for help cannot receive it unless it is given by a professional then you can forward that person onto WP Jobs or CodePoet.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘External Links not working’ is closed to new replies.