• Ich bin kurz vor der Verzweiflung, weil ich absolut den Fehler nicht sehe. Was mache ich hier falsch?

    Ich migriere Custom-Content-Shortcode-Befehle in Loops & Logic und habe hier zwei Befehlss?tze. Der für CCS funktioniert:

    
    [loop type=jobs]
    [field url]
    [/loop]
    

    The code for L&L looks like this, but there is no output:

    
    <Loop type=jobs>
      <Field url />
    </Loop>
    

    I’m using a plugin called “Jobs for WordPress” which is generating an own Custom Post Type (“jobs”).

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter Besim Karadeniz

    (@besimk)

    @sterndata I would be pleased not to escalate this any further. We got the message, okay?

    Plugin Author Tangible

    (@tangibleinc)

    Upon further testing on our end, we realized that this issue was being caused by a configuration setting in the Jobs for WordPress and was not being caused by L&L. Jobs for WordPress was associating all job posts with a single parent post. Since the loop by default was looping through that parent post and not the children of that parent post, it looked like there were no results when looping through jobs in L&L.

    The two options to fix this are:

    • Changing the “Page where you list jobs” setting in Jobs for WordPress to any page, saving, then changing back to nothing, and saving again. That way, job posts won’t have a post parent anymore.
    • Using the “include_children” attribute in the L&L Loop, so that child posts will be included in the results, like this: <Loop type=jobs include_children=true>.
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Looping of Custom Post Type not working’ is closed to new replies.