Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap does not convert shortcode #261

Open
grndis opened this issue Dec 11, 2023 · 0 comments
Open

Sitemap does not convert shortcode #261

grndis opened this issue Dec 11, 2023 · 0 comments

Comments

@grndis
Copy link

grndis commented Dec 11, 2023

Describe the bug
When using [shortcode] as the meta title and setting the HTML sitemap option to use the SEO Title, it should convert the [shortcode] to the title. However, in this case, the shortcode is not being converted and appears as plain [shortcode]. I have already enabled the shortcut for the title with this filter, and it works as the meta title.

add_filter(
	'rank_math/frontend/title',
	function ( $title ) {
		return do_shortcode( $title );}
);

To Reproduce
Steps to reproduce the behavior:
Use a shortcode on a single post title in RankMath, enable the HTML sitemap in the Sitemap Settings. Choose "SEO Title" as the item titles.

Screenshots
CleanShot 2023-12-11 at 13 53 23@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant