This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Tagged: ,

Read More Button after blog excerpt directs to current page

  • Creator
    Topic
  • #22384
    John
    Participant

    On this page:
    http://mesa.broomfieldwebette.com/blog/

    The “read more” button directs back to the current page. The same behavior on the home page with the mini-post-list. The title and icon work fine. This is with ver 2.0.0rc-1, Theme Blvd WPML Bridge is activated, though deactivating had no effect.
    thx,
    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #22385
    Jason Bobich
    Keymaster

    I can’t reproduce on my end and haven’t heard of this issue before from anyone. Something you’re doing with a plugin has to be interfering in some way. Maybe the translation plugin? Can you think of anything else that would mess with the main WordPress object or loop? If we can figure out what it is, maybe we can come up with a workaround.

    Also as an experiment, here’s something you can try that I can think of. Copy content-list.php to your child theme, and change this:

    <?php echo themeblvd_button( themeblvd_get_att('more_text'), get_permalink( get_the_ID() ), 'default', '_self', 'small', 'read-more', get_the_title( get_the_ID() ) ); ?>

    To this:

    <?php echo themeblvd_button( themeblvd_get_att('more_text'), get_permalink(), 'default', '_self', 'small', 'read-more', get_the_title() ); ?>
    #22397
    John
    Participant

    The site is now running with Version: 2.0.0-RC1 as the active theme. The only plugins activated are the recommended plugins and WPML Multilingual CMS ver 3.1.9.7 (current).
    http://mesa.broomfieldwebette.com/

    deactivating Multilingual CMS solves the read more problem.

    on the live site I moved content-list.php to child and made this adjustment:

    http://pastie.org/10282983

    Since $post seems to be holding its value thru the_excerpt(), I “cached” get_permalink() and used the value in the read more link. So for my purposes the problem is solved. Thanks for the content-list.php suggestion.
    John

    note: in my solution if I replace echo $x with echo get_permalink() in the last line it links to the wrong page (current).

    • This reply was modified 7 years, 10 months ago by John.
    • This reply was modified 7 years, 10 months ago by John.
    • This reply was modified 7 years, 10 months ago by John.
    #22428
    askwpgirl
    Participant

    Avada had a similar issue with Read More buttons and WPML. This might help if it is an issue with the way JS is filtering the read more permalink:

    https://wpml.org/forums/topic/read-more-link-on-blog-returning-me-to-same-page/

    I am going to be doing another WPML install with JS 2.0 soon, so I’ll let you know in the next couple weeks if I see an issue with the Read More buttons. We will also be running WooCommerce, so that will be fun.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.