# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
