Archives shortcode After tag help

  • Unknown's avatar

    Hi, I am trying to use the Archives short code with format=custom tag. I want each post to be on a new line and have tried using the after tag to do so. since “br” is a valid html tag to use in posts, this shudn’t be a problem but its not working. there isnt any example to use html tags in before and after tags of Achive shortcode. does anyone have a clue?
    thanx

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Please paste the exact URL of your blog when asking questions here, or link your nickname to your blog (as explained in the Sticky 8 Things to Know Before Posting). We can’t help without that.

  • Unknown's avatar

    Sorry. I didn’t paste the url since I didn’t publish the Sitemap page due to the break problem. this is the url.
    https://zeehnamespace.wordpress.com/

  • Unknown's avatar

    Text below post title, blank line before next title:

    [archives format=custom after='
    TEXT_HERE<p></p>']

    Text below post title, no blank lines:

    [archives format=custom after='
    TEXT_HERE
    ']

    Text below post title, blank line before next title and before text:

    [archives format=custom after='<p>TEXT_HERE</p>']

  • Unknown's avatar

    Oops!

    Text below post title, blank line before next title:
    [archives format=custom after='<br />TEXT_HERE<p></p>']

    Text below post title, no blank lines:
    [archives format=custom after='<br />TEXT_HERE<br />']

    Text below post title, blank line before next title and before text:
    [archives format=custom after='<p>TEXT_HERE</p>']

  • Unknown's avatar

    This is the code for the page
    [archives type=postbypost format=custom before='♦' after='
    ']

    Sitemap

    I still cant find see the new line

  • Unknown's avatar

    [archives type=postbypost format=custom before='♦ ' after='<br />']

  • Unknown's avatar

    yup i tried that one too…

  • Unknown's avatar

    Maybe you typed something wrong when you tried. Copy it from here and try again (I tried it in my test blog and it works). I checked the source code of your page: at the moment you’ve got a span tag for color, but absolutely nothing for “after”.

  • Unknown's avatar

    Thanks for your help. But I have repeated tried doing this. Sometimes, it autosaves the page but just doesnt update it. Even the time that it updated the page, it didnt display the Break. Perhaps, it is clashing with the styles.
    I am not sure but if I choose the default format, then it shows each post on a new line. However, it doesnt match the blog style. Hence, I used the format=custom tag. I should email the support I guess.

  • The topic ‘Archives shortcode After tag help’ is closed to new replies.