Can we create different feed pages for different clients?
-
Hi,
Can we create different feed pages for different clients? We need to restrict the content length for some clients, and we need to show full content for others. Is that possible? Can we customize the feed page for this functionality? Also, we don’t want to remove the HTML elements from the content.
The code that we are planning to use for limiting the content of each post feed is mentioned below.
function custom_content_length_feed( $content ) { if ( ! is_feed() ) return $content; $words = 200; $more = '…'; $content = substr( $content, $words, $more ); $content = force_balance_tags( $content ); return $content; } add_filter( 'the_content_feed', 'custom_content_length_feed' );
Any ideas?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can we create different feed pages for different clients?’ is closed to new replies.