Notifications
Clear all

Problem with 'More' tag

1 Posts
2 Users
0 Reactions
2,470 Views
 Luis
(@teknofilo)
Member Customer
Joined: 9 years ago
Posts: 3
Topic starter  

My website shows several posts at the main page, and many have a 'show more' label to read the whole post.

How can I make that the little intro which is shown on the main page is not repeated on every page?

Example: I created a post like the following, but unfortunately the 'little intro' is shown on every page (pages 1, 2 and 3). If I write the little intro within the first page (together with 'Content for design'), then the main page does not show any intro.

Little intro for main page. It could be ok if it is repeated on page 1, but not in every page.
<!--more-->

[nextpage title="1. Design" desc="blah blah blah" img="43890"]Content for design[/nextpage]

[nextpage title="2. Hardware" desc="blah blah blah" img="43890"]Content for hardware[/nextpage]

[nextpage title="3. Price" desc="blah blah blah" img="43890"]Content for price[/nextpage]


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Good question!

The only way by now is using post excerpts. For the main page your theme should display post excerpts. And for the single post you should put the same text as a  little intro within the first page (together with 'Content for design').

If your theme is smart, it should check and show excerpts if those exist. If those don't exists it should display the part of text separated by --more-- tag.

But if your theme doesn't work with this logic, you should add some changes in main page template file. You should use the_excerpt() instead of the_content().

 


   
ReplyQuote
Share:
Scroll to top