> For the complete documentation index, see [llms.txt](https://bonsy.gitbook.io/bonsay-recman-wp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bonsy.gitbook.io/bonsay-recman-wp/job-posts/job-post-template-usage.md).

# Add a job post feed

{% hint style="info" %}
Make sure the plugin is installed and activated. Check the «View Cache» menu in the plugin to verify that the plugin has fetched data.
{% endhint %}

Easily incorporate job posts into your page template using a loop, similar to the WordPress post loop:

```php
# Making sure the plugin is active and that job posts are available
if( function_exists('have_jobposts') && have_jobposts() ) :

     # loop through each job posts
    while( have_jobposts() ) : the_jobpost();

        # Print the job post title
        the_jobpost('title');

    endwhile;

else :

    echo "No job posts available.";

endif;

?>
```

### Additional options

#### Limit number of jobs in feed

You can limit the number of job posts in the feed by adding a limit count (integer) to the `have_jobpost` function. You only need this when checking if feed has posts.

```php
<?php 

# Check if there are any job posts available, limit the feed to # of posts. 
if( function_exists('have_jobposts') && have_jobposts( 10 ) ) : :
    ....
```

#### Reset loop - If adding multple loops on your WordPress site.

Call the `reset_jobpost_loop()` method before calling a new loop.&#x20;

Read more on this page:

&#x20;[Displaying expired job posts](/bonsay-recman-wp/job-posts/displaying-expired-job-posts.md)

#### Check out our starter template

{% content-ref url="/pages/-M52BDFAZTpHtsTPWOyY" %}
[Job Post Feed Template](/bonsay-recman-wp/wp-templates/job-posts-template-listing.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bonsy.gitbook.io/bonsay-recman-wp/job-posts/job-post-template-usage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
