featured image in custom pattern
-
hi guys,
things are getting really hard with full site editor.
i set up a custom pattern in
/wp-content/themes/my-child-theme/patterns/parallax.php
i can access the pattern in wp FSE.
but when i insert the block including some php like<?php echo "xxx" ?>
the xxx will be statically inserted from the parallax.php
how do i get the posts featured image inside parallax.php?<?php /** * Title: Parallax Beitragsbild * Slug: pfefferprinz-23-child/parallax-beitragsbild * Categories: featured */ ?> <!-- wp:heading --> <h2>Hello <?php echo "xxx"; ?></h2> <!-- /wp:heading -->
i also tried setting up a shortcode inside functions.php – output stays static as well.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘featured image in custom pattern’ is closed to new replies.