WordPress.org

Support

Support » Themes and Templates » Featured Pages Display Full Page Content

Featured Pages Display Full Page Content

  • Hello, I am hoping there is a simple answer to this. Is there a way to display the full post content (not the excerpt or the text box) of the featured pages on the front page? I need to show the full content of three separate pages. Thank you for any insight!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Create a child theme of Customizr – http://codex.wordpress.org/Child_Themes and put this page there parts/class-content-post_list.php
    Then find the line where it says: <?php the_excerpt(); ?> and replace it with <?php the_content(); ?> .

    Hi, thank you for your answer! Unfortunately, that doesn’t change the front page featured content to show the full post.

    I think the features pages on the front page can be only up to 200 car. max.

    See in Customize => Front Page and scroll down to “Featured pages options”, where it says “Featured text one (200 car. max)”

    rdellconsulting
    Participant

    @rdellconsulting

    I’m not an expert php coder, but try adding this to a child theme functions.php:

    add_filter('tc_fp_single_display', 'rdc_fp_single_display');
    function rdc_fp_single_display($output) {
        return preg_replace('|, 200|', ', 500', $output);
    }

    which should(!) override the 200 character limit – change 500 to what you need.

    kaniamea, Yes, I see that, but I was hoping to be able to change it to display all of the content. rdellconsulting, thank you for that answer. However, I need more than just more characters, I need the full page content, html characters and all. I suppose I’m out of luck.

    Maybe it would be easier to use posts?

    rdellconsulting
    Participant

    @rdellconsulting

    Lateral thinking 😉

    @rdellconsulting – However what you tried to make happen there is exactly what I’m looking for. Posted the php but unfortunately it didn’t work. Would be very interested in a solution, the 200 char max does not make sense to me at all.

    d4z_c0nf
    Participant

    @d4z_c0nf

    Use this, instead, in your child-theme functions.php:

    add_filter('tc_fp_text_length', 'my_fp_text_length');
    function my_fp_text_length($original) {
        return 1000;/* change this value the way you want */
    }

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Featured Pages Display Full Page Content’ is closed to new replies.