Make WordPress Core

Opened 21 months ago

Closed 21 months ago

Last modified 21 months 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
21 months ago

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

#2 @joyously
21 months 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
21 months 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.

Version 0, edited 21 months ago by BackuPs (next)

#4 follow-up: @joyously
21 months 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
21 months 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
21 months 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 21 months ago by BackuPs (previous) (diff)

#7 @joyously
21 months 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
21 months 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.


21 months ago

#10 @desrosj
21 months ago

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