WordPress.org

Ready to get started?Download WordPress

Forums

Job Manager
Job Fields Repearing on list template (2 posts)

  1. ignitionmedia
    Member
    Posted 2 years ago #

    Im not quite sure where I have gone wrong with my template below but my 5 Job Fields are repeating 4 times each for each listing..
    my template is below. can anyone help??

    [job_loop]
    <div class="job[job_row_number] job[job_id] [job_odd_even]">
    <table class="job-table[if_job_highlighted] highlighted[/if_job_highlighted]">
    <tr>
    <th scope="row">Title</th>
    <td>[job_icon] [job_link][job_title][/job_link]</td>
    </tr>
    [if_job_categories]
    <tr>
    <th scope="row">Categories</th>
    <td>[job_category_links]</td>
    </tr>
    [/if_job_categories]
    [job_field_loop]
    [if_job_field]
    <tr>
    <th scope="row">[job_field1_label]</th>
    <td>[job_field1]</td>
    </tr>
    <tr>
    <th scope="row">[job_field2_label]</th>
    <td> [job_field2]</td>
    </tr>
    <tr>
    <th scope="row">[job_field3_label]</th>
    <td> [job_field3]</td>
    </tr>
    <tr>
    <th scope="row">[job_field4_label]</th>
    <td> [job_field4]</td>
    </tr>
    <tr>
    <th scope="row">[job_field6_label]</th>
    <td>[job_field6]</td>
    </tr>
    [/if_job_field]
    [/job_field_loop]
    <tr>
    <td></td>
    <td class="jobs-applynow">[job_apply_link]Apply Now[/job_apply_link]</td>
    </tr>
    </table>
    </div>

    [/job_loop]

    [if_job_page_count]
    <div class="job-nav">
    <div class="previous">[job_page_previous_link]Page [job_page_previous_number][/job_page_previous_link]</div>
    <div class="this">Jobs [job_page_minimum]-[job_page_maximum] of [job_total]</div>
    <div class="next">[job_page_next_link]Page [job_page_next_number][/job_page_next_link]</div>
    </div>
    [/if_job_page_count]

  2. Gary Pendergast
    Member
    Plugin Author

    Posted 2 years ago #

    Because you're specifying each [job_field...] individually, you don't need to specify the [job_field_loop] and `[/job_field_loop] tags. Remove them, and it should work fine.

    Also, remove the [if_job_field] and [/if_job_field] tags. They're not necessary.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic