Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Hide parent post when have no child

$
0
0

Dear Marco,

In this scenario, you will normally have a parent view and a child view inserted inside. The parent View will have the company name and the child View will show its jobs.

The idea is move the company name from the parent view to the child view, in the View Layout Meta HTML, just above the loop. In here you have to use the id attribute. You also have to remove the "No posts found" section. So it looks like this:

[wpv-layout-start]
[wpv-posts-found]
<!-- wpv-loop-start -->
   [wpv-post-link id="$company"]
   <ul>
      <wpv-loop>
         <li>[wpv-post-link]</li>
      </wpv-loop>
   </ul>
<!-- wpv-loop-end -->
[/wpv-posts-found]
[wpv-layout-end]

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Regards,
Caridad


Viewing all articles
Browse latest Browse all 20145

Trending Articles