I am new to Genesis, i created a child theme it has two post types, one for the THEMES i want to display and other for the PORTFOLIO. both of these are having the_excerpt in their loop,

I want to add "View Theme" and "View Project" separately. I also want to control the limit of the excerpt for each one will have more excerpt to show and other will have less. the same filter is applied on both of the post types.

  • 1
    Can you rephrase your question to state clearer what it is? It sounds like you're asking multiple questions, and so you should ask them in... multiple questions, not one. Doing it this way is incorrect ( and deprives you of reputation points too ) – Tom J Nowell Mar 28 '13 at 16:14
function excerpt($limit) {
} else {
$excerpt = implode(" ",$excerpt);
return $excerpt;

write below code in your template.

<?php echo excerpt(25); ?>

Your Answer

