php - Display image on top of page in template part for displaying posts in loop
Get the solution ↓↓↓I am trying to add an image at the top of this template page. The page is tender-page.php where the tender is my post type.
Wherever I add an image it becomes part of the loop and is repeated but I just need to display it once at the top.
<?php
/**
* Template part for displaying posts in the loop
*
* @package
*/
$company = get_field( "company" );
$tender_documents = get_field( "tender_documents" );
$tender_category = get_field( "tender_category" );
?>
<div class="tender-listing">
... Content
</div>
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: malformed utf-8 characters, possibly incorrectly encoded
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.