Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template part for displaying posts
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
- *
- * @package WordPress
- * @subpackage Twenty_Twenty_One
- * @since Twenty Twenty-One 1.0
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="entry-content">
- <p>
- <?php
- $extraPostID = 1;
- $str = html_entity_decode( get_the_title( $extraPostID ), ENT_QUOTES, 'UTF-8' );
- $extraContent = get_page_by_title($str, OBJECT, 'post');
- var_dump($extraContent);
- ?>
- </p>
- </div><!-- .entry-content -->
- <footer class="entry-footer default-max-width">
- <?php twenty_twenty_one_entry_meta_footer(); ?>
- </footer><!-- .entry-footer -->
- <?php if ( ! is_singular( 'attachment' ) ) : ?>
- <?php get_template_part( 'template-parts/post/author-bio' ); ?>
- <?php endif; ?>
- </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement