• Hey guys, running the latest version of wordpress with buddy press and bbpress installed on a website that im making

    http://www.cc.nomcom.info

    unfortunately there seemms to be an issue with the more tag when the slideshow is displayhed on the front page as it isnt ending the excerpts where it is supposed to be, ive poked and proded at the code as best i can understand it cand it doesnt seem to want to work for me can anyone suggest what i may need to do?

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • I suspect that your theme uses the_excerpt() when displaying category lists, instead of the_content(). You can read about the difference between the two here:

    http://codex.wordpress.org/Function_Reference/the_excerpt

    If I’m right, you need to find your WordPress loop and replace the call to the_excerpt() with the_content(). The more tag will then work.

    HTH

    PAE

    Thread Starter nomcom

    (@nomcom)

    m sorry forgive me for possibly sounding stupid but where do i find this “wordpress loop” im using the custom community Buddypress theme and cant see this option any where so i suspect im looking for the wrong thing

    Thread Starter nomcom

    (@nomcom)

    ok just looked manually throuhg all the theme editor and could only find a refernce to the_content() no mention of excerpt :S

    Moderator keesiemeijer

    (@keesiemeijer)

    I think the slideshow is using the WordPress default of 55 words for an excerpt. Try using a manual excerpt: http://codex.wordpress.org/Excerpt#Excerpt.2C_automatic_excerpt.2C_and_teaser

    Thread Starter nomcom

    (@nomcom)

    thanks for that, i tried inserting those lines into the relevant areas and still no dice. theres no mention of excerpt anywhere in the theme sections either only the_content

    [Code moderated as per the Forum Rules. Please use the pastebin]

    thats under “page template” (page.php)

    Moderator keesiemeijer

    (@keesiemeijer)

    The slider function is in the template file shortcodes.php and uses get_the_excerpt() (on line 565) to show the excerpt.

    wp-content/themes/custom-community/core/includes/wp/shortcodes.php

    A manual excerpt should work with this. Otherwise try setting a new excerpt length with this: http://codex.wordpress.org/Function_Reference/the_excerpt#Control_Excerpt_Length_using_Filters

    Thread Starter nomcom

    (@nomcom)

    thanks for that kees, after playing with that code (and recieving several site breaking errors i discover that the more tag works on the news page http://cc.nomcom.info/news but not on the front page cc.nomcom.info

    everywhere i inserted the code that you linked to it returned an error on the line where i inserted the code that would prevent anything but that error being shown on the site :s

    I get the suspicision that im possibly being very dense here sorry this is the first time ive ever done anything this deep in wordpress your patience is honestly appreciated

    Moderator keesiemeijer

    (@keesiemeijer)

    Not sure what you want to accomplish.

    unfortunately there seems to be an issue with the more tag

    The more tag only works with the_content() and not with the_excerpt() or get_the_excerpt().

    Do you want to change the excerpt for the posts or the slider captions?

    Thread Starter nomcom

    (@nomcom)

    I want to only display up to the more tag in the slideshow excerpt on the front page, making it appear the same as the slideshow on the news page appears

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘More tag doesnt appear to work’ is closed to new replies.