WordPress.org

Forums

Custom Post View Generator
Activating & Using Custom Post View Generator Breaks "Read More" functionality (2 posts)

  1. kamann
    Member
    Posted 2 years ago #

    After downloading and activating Custom Post View Generator I noticed that the core "read more" behavior of my posts was suddenly not working. Basically large/lengthy posts that contained a "<!--more-->" tag were suddenly displaying the full content of the post on the front page of the website rather than only displaying the "fragment" that I had specified in the post.

    I did some research, and even went so far as to make a few suggested changes to the_loop that people suggested to get the desired behavior, but nothing worked.

    After walking backwards through the steps that I had done recently I realized that I had installed this plugin, so I deactivated the plugin (left it installed), and suddenly the "Read More" functionality started working again.

    I reactivated the plugin (didn't even bother configuring it) and the "Read More" stuff was broken again.

    I like the plugin, but I don't like the side effect that it has on the site.

    You can see the problem on the frontpage at http://norsesoccer.kwstk.com.

    Looking for a correction. Not sure what the plugin is doing, but it is having a very undesirable effect.

    http://wordpress.org/extend/plugins/custom-post-view-generator/

  2. Marco Constancio
    Member
    Plugin Author

    Posted 2 years ago #

    The problem is that this plugin modifies the the post content and a user adds several fields and complex templates IN SOME TEMPLATES you can see html/css code when wordpress displays the excerpt on post listing.

    So I added in my plugin a function called cpvg_process_excerpt that strips the tags and some content of the post content and displays it as the excerpt and that is that causes to the "Read More" disappear.

    I tested again in the latest version and it didn't seem to display html/ccs code so I commented the function.

    Update to the latest version but if you are viewing code on the excerpt please uncomment the line 108 on the index.php on the plugin file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post View Generator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic