WordPress.org

Ready to get started?Download WordPress

Forums

Q and A FAQ and Knowledge Base for WordPress
[Plugin: Q & A FAQ and Knowledge Base] When activated, adds "Continue Reading" to all (13 posts)

  1. thadb
    Member
    Posted 1 year ago #

    Since the update to Q and A version 1.0.5, my content called from the_except adds "Continue Reading" with a right arrow to each excerpt, even though there is no argument in my template nor in my function to add it. When I deactivate "Q & A", it goes back to normal.

    You can see an example of this on the home page at http://providencenc.net

    My FAQ is not on the home page, but if it matters, you can see an FAQ used on this page..

    http://providencenc.net/happenings/

    Thanks!

    Thad

    http://wordpress.org/extend/plugins/q-and-a/

  2. Dalton
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Thad,
    The "Continue Reading" filters were borrowed from TwentyEleven. You're right, they should only be applied to FAQs when you have excerpts turned on, and never any other time. I'll work on this in the next release.

    Dalton

  3. thadb
    Member
    Posted 1 year ago #

    Thanks, Dalton. By the way, this is an awesome plugin. It really makes FAQs in WordPress elegant. Thanks for the contribution.

  4. k___k
    Member
    Posted 1 year ago #

    I have the same problem like thadb. Thought excerpts=false helps but it doesnt :(

    A fix would be really appreciated.

    Thanks for the plugin.

  5. stevejohnson
    Member
    Posted 1 year ago #

    Your plugin is for FAQ/Q&A, whatever. Your excerpt filter affects EVERY EXCERPT, not just your own. A VERY BAD IDEA. You've caused me wasted time troubleshooting a clueless client's site troubles.

    EDIT:
    Why in the billy blue *** did you mess with excerpt length in a completely unrelated plugin?

  6. k___k
    Member
    Posted 1 year ago #

    Is there an upcoming release, which will fix this problem?

  7. k___k
    Member
    Posted 1 year ago #

    Removing this code in q-and-a/inc/functions.php fixes the problem ...

    /* Excerpt functions borrowed from TwentyEleven */
    
    /**
     * Sets the post excerpt length to 40 words.
     */
    
    function qaplus_excerpt_length( $length ) {
    	return 40;
    }
    add_filter( 'excerpt_length', 'qaplus_excerpt_length' );
    
    /**
     * Returns a "Continue Reading" link for excerpts
     */
    
    function qaplus_continue_reading_link() {
    	return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
    }
    
    /**
     * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
     */
    
    function qaplus_auto_excerpt_more( $more ) {
    	return ' &hellip;' . qaplus_continue_reading_link();
    }
    add_filter( 'excerpt_more', 'qaplus_auto_excerpt_more' );
    
    /**
     * Adds a pretty "Continue Reading" link to custom post excerpts.
     *
     */
    
    function qaplus_custom_excerpt_more( $output ) {
    	if ( has_excerpt() && ! is_attachment() ) {
    		$output .= qaplus_continue_reading_link();
    	}
    	return $output;
    }
    add_filter( 'get_the_excerpt', 'qaplus_custom_excerpt_more' );
  8. Dalton
    Member
    Plugin Author

    Posted 1 year ago #

    We will be posting an update for this soon. Sorry for the trouble!

  9. Fvieville
    Member
    Posted 1 year ago #

    The new version is 1.0.6.2 and the problem is still there.

  10. mtenhulzen
    Member
    Posted 1 year ago #

    What's the best way to restore the latest q-and-a/inc/functions.php if the code was not properly removed? This site is not published to the web yet, but completely inactive because I failed to copy the page before editing.

  11. magdor
    Member
    Posted 1 year ago #

    Simply download the plugin, unpack/unzip it and upload the original functions.php file via FTP.

    Instead of removing the code you could comment out the code when testing. That makes undoing your changes a lot easier.

    Apart from all this, I find it a bit worrying that this simple to fix bug has not been resolved for months now... Especially since this is a great plugin.

  12. harikjr88
    Member
    Posted 1 year ago #

    i agree... a simple bug has not been resolved for a while. I'm glad I found this because removing that code did fix that issue.

    I'm surprised it even added it.

    But this was helpful.

  13. stickFinger
    Member
    Posted 1 year ago #

    Hi all

    I´ve also spotted an wierd side effect here: on THIS THREAD

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic