Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#56918 closed defect (bug) (invalid)

more tag not working

Reported by: backups's profile BackuPs Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Hi

I tried all default themes and some commercial themes but when a more tag is added to the content of a post or page in the default editor it is not showing the readmore link anymore.

Did something change? Her is the html i am using.

This content is before the <a title="The More Tag" href="https://en.support.wordpress.com/splitting-content/more-tag/" target="_blank" rel="noopener">more tag</a>.

Right after this sentence should be a "continue reading" button of some sort on list pages of themes that show full content. It won't show on single pages or on themes showing excerpts.

<!--more-->

And this content is after the more tag. (which should be the anchor link for when the button is clicked)

Please advice.

Thank you

Change History (10)

#1 @BackuPs
2 years ago

Also tried it in gutenberg with default 20-22 theme but is also does not work. What am i missing here?

#2 @joyously
2 years ago

I wrote the clarification on that classic test content.
Are you saying that your theme is showing full content on the archive page, and you are not seeing the More link? (It never shows on themes showing excerpts.)
Or are you saying you don't see the More indicator in the editor?

#3 @BackuPs
2 years ago

it shows the complete text and not the more link. We are not using excerpts. Try any of the default wordpress themes with the more tag. It will not work.

I see the <-more-> indicator in the editor but in the front (preview) it shows me the complete text and not the read more link to click.

Ps in the wordpress reading settings it is set to full text and pot to excerpt. Btw it does not matter what that setting is. It never works.

Last edited 2 years ago by BackuPs (previous) (diff)

#4 follow-up: @joyously
2 years ago

Ps in the wordpress reading settings it is set to full text and pot to excerpt. Btw it does not matter what that setting is. It never works.

Ah, this is the problem. That setting is for the RSS feed, not the pages you see in the browser.
I just tested 6.1 RC3 with a theme that shows full content on archive pages, and the more tag works just fine. A bunch of the themes you mentioned do not show full content on archive pages, so you cannot test the more tag with them.

#5 in reply to: ↑ 4 @SergeyBiryukov
2 years ago

  • Description modified (diff)

Replying to joyously:

Ps in the wordpress reading settings it is set to full text and pot to excerpt. Btw it does not matter what that setting is. It never works.

Ah, this is the problem. That setting is for the RSS feed, not the pages you see in the browser.

Right, the option in Reading Settings only applies to RSS feeds, not to archive pages. This was previously discussed in #22049, #39519, #45752, and some other tickets.

#6 @BackuPs
2 years ago

when i add the given text in my initial comment into a page or post in f.e. the 20-22 theme and view the page or post in the frontend of my website the complete text shows and it shows no more link to click. Did you try this with the 20-22 (20-21,20-20, 20-19) theme? The more tag does not work in any of these themes in normal pages or posts. I am not talking about archive pages. Please advice.

Last edited 2 years ago by BackuPs (previous) (diff)

#7 @joyously
2 years ago

The more tag is only "visible" (as a link to the post) on archive pages of themes that show full content on archive pages. There is nothing visible for the more tag to do in a normal post (pages are unaffected since there is no archive page for pages).

#8 @BackuPs
2 years ago

  • Resolution set to invalid
  • Status changed from new to closed

i thought it also worked on single posts or pages as a reveal for the text below that point. at least i saw that in one theme.

Thank you & Please close.

This ticket was mentioned in Slack in #core by desrosj. View the logs.


2 years ago

#10 @desrosj
2 years ago

  • Component changed from General to Editor
  • Milestone Awaiting Review deleted
  • Version trunk deleted
Note: See TracTickets for help on using tickets.