Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Spacetime

    (@spacetime)

    Can you post the address of the website?

    Thread Starter pharmhand

    (@pharmhand)

    Is there something in particular you need to see/know?

    The html (without the ad insertion code) typically looks like this: http://pastebin.com/7TELxLmJ

    Plugin Author Spacetime

    (@spacetime)

    Yes, I wanted to see the code. Pastebin is OK.

    My proposal is to create a code block that contains the “more” tag and the ad code

    <br />
    <span id="more-1234"></span>
    AD_CODE

    and then insert Ad Inserter shortcode instead:

    ...Mauris placerat eleifend leo.
    [adinserter block="N"]
    </p>

    Please test this with your theme.

    Anyway, I’ll consider adding support for such cases.

    Plugin Author Spacetime

    (@spacetime)

    Of course, unique ids can not be used with this approach.

    Plugin Author Spacetime

    (@spacetime)

    And one more thing: make sure the block is enabled on posts only.

    Thread Starter pharmhand

    (@pharmhand)

    Yeah, unfortunately I don’t think this approach will work, because the more id is unique to each post.

    Plugin Author Spacetime

    (@spacetime)

    If there is some code that repeats for all posts then there will be a chance to use it to insert code block at this position. I’ll consider adding support for this feature.

    Thread Starter pharmhand

    (@pharmhand)

    So using the ‘more’ button in WordPress inserts the following code into the post:

    <!–more–>

    That is the common code that is in most of my posts. (Some posts are too short and thus don’t have it inserted.) This code then gets translated somehow into the html as:

    <span id=”more-1234″></span>

    Not sure if it’s the theme or wordpress itself that does that translation. I’m not that familiar with the wordpress code so I don’t know where that translation takes place.

    But yes, if you could add support for adding ads where the ‘more’ tag gets inserted, that would be great. Thanks.

    Plugin Author Spacetime

    (@spacetime)

    Please update to 1.5.4.

    Configure ad block with the following options:

    Automatic display: After Paragraph
    Paragraph Number: 1
    Count only paragraphs that CONTAIN: <span id="more-

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

The topic ‘inserting ad after more tag’ is closed to new replies.