Support » Themes and Templates » Is there an excerpt template?

  • Okay I know it’s a function but I want to know how to insert html into it. My goal is to have sort of an excerpt template up and running where I can modify the variables I want to through some custom fields.

    How is it possible to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can interact to a certain extent with

    The most common being:

    function new_excerpt_more($more) {
           global $post;
    	return ' <a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
    add_filter('excerpt_more', 'new_excerpt_more');

    You can though work out using that example how you could add a code wrap.

    That is what I found out but I was hoping there may be a better way because what if I have different excerpt templates for different kinds of posts?

    I’ll try to figure out a way to make the custom fields into an excerpt (I know you can do this) , then using the TYPES plugin I could assign the custom field to a custom post.

    Thank you for answering and happy New Year!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there an excerpt template?’ is closed to new replies.