Add multiple HTML attributes to an Elementor button

There are 2 problems. The first problem is this: if (is_single (‘^\d+$’)) { is_single can’t take a regex, it only takes: Post ID, title, slug, or array of such to check against. https://developer.wordpress.org/reference/functions/is_single/ So you could do this: is_single( ‘my-page’ ) for example, but in this case it would be better to do is_single() or … Read more

Alternative to php echo within code

I can’t speak to how the above code is actually implemented, but the very first part is a misuse of “echo.” Everything under “” should be outside of of it. How exactly you handle the rest of the code (and whether it makes sense) is impossible for me to say, but you might see something … Read more