WordPress.org

Ready to get started?Download WordPress

Forums

How to show full posts on frontpage (15 posts)

  1. wordpressmania
    Member
    Posted 2 years ago #

    Basically my blog posts are all shortened on the front page, i don't know how to change it, there are many tutorials out there but none of them work for me, i think its because my theme is different.

    Site - http://bit.ly/ze5XLL

    my index.php looks like this:

    [code moderated - please use the pastebin]

  2. wordpressmania
    Member
    Posted 2 years ago #

    I have uploaded my index.php code here - http://pastebin.com/abxPABrK

  3. Jacob Chappell
    Member
    Posted 2 years ago #

    Can you post your front-page.php code as well?

  4. wordpressmania
    Member
    Posted 2 years ago #

    If you mean the function.php here it is: http://pastebin.com/gw1Ra8d4

  5. Jacob Chappell
    Member
    Posted 2 years ago #

    That's not what I was looking for. In your theme's folder with functions.php and index.php that you posted there should also be a front-page.php (maybe). If not let me know.

  6. wordpressmania
    Member
    Posted 2 years ago #

    no there is no front-page.php im afraid. there's other files like blog.php single.php archive.php.

  7. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    Start a basic debug routine.

    Try
    - deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can't get into your admin dashboard, try resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder if you have one. The easiest way is to rename that folder to mu-plugins-old.

    - switching to the Twenty Eleven theme to rule out any theme-specific problems. If you can't log in to change themes, you can remove the theme folders via FTP so the only one is twentyeleven. That will force your site to use it.

  8. Jacob Chappell
    Member
    Posted 2 years ago #

    Just judging by your home page output, I would guess that your blog is using the_excerpt rather than the_content. It could be located in that lib/blog.php file.

  9. wordpressmania
    Member
    Posted 2 years ago #

    @kmessinger its not a bug, this theme creates shortened posts on the homepage, i just have to find some lines in one of the files and edit it to make it full posts.

    Jacob Chappal - here is the blog.php - http://pastebin.com/NKaShA5z

  10. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    Looks like you can change the length of the excerpt in the functions.php file.

    Have you asked the theme developer?

  11. Jacob Chappell
    Member
    Posted 2 years ago #

    @wordpressmania Ah, there we go. Try changing this bit:

    wpe_excerpt('wpe_excerptlength_index', '');

    to this:

    the_content();

    Using the_content() will always output the full content regardless of the excerpt's registered length.

  12. wordpressmania
    Member
    Posted 2 years ago #

    I have now changed to this as suggested:

    <?php the_content(); ?>

    But it doesn't work for me.

  13. Jacob Chappell
    Member
    Posted 2 years ago #

    Hmm, I don't see how that didn't work unless one of the included files is hooking into the_content and replacing it with an excerpt or something bizarre and unusual like that.

    Looking through the functions.php file you provided, the wpe_excerpt('wpe_excerptlength_index', ''); line is printing an excerpt with a length of 70 as defined by that wpe_excerptlength_index callback function.

  14. wordpressmania
    Member
    Posted 2 years ago #

    I found a file named blog-home.php I changed one of the lines to what you suggested and it worked!!! Thanks very much, your help is appreciated.

  15. Jacob Chappell
    Member
    Posted 2 years ago #

    You're very welcome. Glad you got everything resolved :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.