• Resolved tiepolo71

    (@tiepolo71)


    I’m trying to rewrite the output of a field, but it doesn’t seem to be working. It strips out all of my HTML. Here is what I put in the rewrite output field.

    <div class=”quote-start”>
    <div class=”quote-end”>
    <div class=”testimonial”>
    {{post_content}}
    </div>
    </div>
    </div>

    https://ww.wp.xz.cn/plugins/query-wrangler/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi tiepolo71,

    I just copied your code into a test query and didn’t run into any problems. So it may be an environment issue. Could you try changing your double quotes for the classes to single quotes and see if that helps?

    <div class='quote-start'>
    <div class='quote-end'>
    <div class='testimonial'>
    {{post_content}}
    </div>
    </div>
    </div>
    Thread Starter tiepolo71

    (@tiepolo71)

    That didn’t work.

    Here is what the output looks like:

    <div class="query-content post-content">
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin erat urna, finibus et placerat sed, vestibulum ac sem. In interdum, enim quis interdum rutrum, orci nibh fringilla libero, sed pulvinar arcu ex non libero.</p>
        </div>

    Perhaps some type of conflict with another plugin?

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Just to verify, do you have the “Row Style” set to “Fields” ?

    I think the output you’re seeing is from the “Posts” row style, but I’m not positive.

    Thanks,
    Jonathan

    Thread Starter tiepolo71

    (@tiepolo71)

    I have it set to “Posts”. Is that the issue?

    BTW, I am a long time Drupal user so this plugin for WordPress is a breath of fresh air. Where can I donate?

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Ah, yes. That is the issue. It’s similar to Views in that way. You know how when building a View you can choose for rows to be “Node” or “Fields”? This is the same mechanism, but they are called “Posts” instead of Node.

    I need to update this plugin to link to my donate button. Best place at the moment is on my personal site: http://daggerhart.com

    Let me know how this works out for you,
    Jonathan

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Rewrite output not working’ is closed to new replies.