Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1186

    Is there a way to have a max number of characters in Mainpage Columns when Posts is selected (without using the read more tag). I would also like to exclude media from the front page.

    My example is here where Youtube video is showing. http://extremephotography.com.au/

    #34346

    Hey,

    Sure, open up /framework/classes/kclass_display_box.php and on lines 122 – 125 replace this:

    the_content('');
    echo '<a href="'.get_permalink().'" class="more-link">Read more</a>';

    with:

    the_excerpt();

    Next, add the exact text you want to display to the excerpt section of your post in WP admin :)

    James

    #34347

    Can I expand on this request? Above the image, I wanted to post the category Name. I have added this code and it displays the title of the post correctly. What do i need to change so it shows the Name of the Category?

    echo'<h2><a href="'.$page_link.'">'.get_the_title().'</a></h2>'."n";

    THANKS!

    #34348

    I have tried what James says above, but I still get the full article showing on the main page and result pages.

    #34349
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Mainpage Columns Posts’ is closed to new replies.