• Resolved Richard

    (@richardelovia)


    Hi,

    I’m managing a few wordpress websites and I’ve inserted some post related special mail tags.
    All the special tags beginning with “post” (i.e. [_post_title], [_post_name] and so on) are not working in all the websites. Those that are not post related (i.e. [_url]) will correctly work.

    Please, note that all the conditions required for the post related special tags in order to work are being respected. The contact form is placed as part of the post content.

    Might this be a bug of the CF7 plugin? How is it possible that I’m experiencing the same issue on different sites?

    P.S. I apologize for mistakes made while writing in english.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter Richard

    (@richardelovia)

    Yeah sure,

    https://www.ecocomfort.it/cf7-test/

    This is a test post made specifically to try out the [_post_title] special tag.
    As I said before, the contact form is placed within the post content and it’s being displayed with a simple call of the the_content() WP function.

    Instead, if I use a site related special tag, like for example [_url], everything’s working fine.

    In the mail text, the [_post_title] tag is empty.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The post-related mail-tags can’t work on the page because this statement is not true:

    Please, note that all the conditions required for the post related special tags in order to work are being respected. The contact form is placed as part of the post content.

    See the following article in the theme handbook to learn the correct way to implement WP loop:

    The Loop

    Thread Starter Richard

    (@richardelovia)

    Wonderful! It is working. Thank you very much for helping me!
    Just one last question. Does the the_content() function necessarily be inside a loop?
    I thought that files like single.php or page.php which are refering to a specific site page didn’t need to contain a loop. I was usually putting the_content() inside the file without any loop

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Special mail tags totally not working’ is closed to new replies.