Someone know how to do that in Beans framework, that posts in categories only show title of posts and only few lines, not the all posts content one after one... ?
Hey Boris,
Add a file to your child theme, name it archive.php
and add the following code in it:
<?php
// Remove some post components.
beans_remove_action( 'beans_post_meta' );
beans_remove_action( 'beans_post_meta_tags' );
beans_remove_action( 'beans_post_meta_categories' );
beans_remove_action( 'beans_post_image' );
// Trim the content.
add_filter( 'the_content', 'example_post_excerpt' );
function example_post_excerpt( $content ) {
return wp_trim_words( $content, 55, '...' );
}
// Always add this function at the bottom of template file.
beans_load_document();
Save and view any category to make sure the magic happened as expected 😉 Please don't hesitate to ask if it is not what you are looking for.
Happy coding,