FEAT Introducing component
This commit is contained in:
parent
ea89cd61cc
commit
8895ca48a0
10
template-parts/articles/article-content.php
Normal file
10
template-parts/articles/article-content.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
$articleID = $args['ID'];
|
||||
$articleContent = get_the_content($articleID);
|
||||
$articleTitle = get_the_title($articleID);
|
||||
?>
|
||||
|
||||
<div class="article-content">
|
||||
<h1><?php echo $articleTitle; ?></h1>
|
||||
<?php echo $articleContent; ?>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user