Site logo

Archived topic

Adding Meta Title and Descriptions

3 replies · Started by Lindsay on July 16, 2022

Viewing posts 1–4 of 4

Hi there,

there was a mistake in Toms code, which i have just corrected.
If you can try that now ?

Fab, perfect.

In case this helps anyone else I changed the second line to:
if ( is_singular( 'page' ) || is_singular( 'post' ) ) {
so that it only applies to pages and posts and not the rest of my CPTs.

Glad to hear thats working for you - and thanks for sharing your option

This archived topic is closed to new replies.