Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Have you tested this code directly in a plugin or in functions.php to see if you receive the same result? Can you post your code here so I can chech if it’s causing the issue?

    Thread Starter Michael

    (@taloscent)

    I place the following code in the functions.php

    function TuitionRateShortcode() {
    return ‘<p>$2.00</p>’;
    }
    add_shortcode(‘tuitionrate’, ‘TuitionRateShortcode’);

    Here is the shortcode in use:

    The current tuition rate is [tuitionrate]. This rate may change from year to year.

    Here is what I get:

    The current tuition rate is

    $2.00

    . This rate may change from year to year.

    Hi.

    This is due to the <p></p> in your function as it creates a paragraph ??

    Have a look at this website for an example.

    Kind regards

    Thread Starter Michael

    (@taloscent)

    Fixed thank you!

    You are welcome ??

    Plugin Author Shea Bunge

    (@bungeshea)

    Thanks for helping out solhuebner. I would have answered this thread sooner, except the <p> tags from the question were not showing up in the email notification, and I thought that must be a different issue.

    It is great that you support your plugin so well but I thought it is a good idea to help out when I can as you devs have a lot to do ?? And I really like your plugin! It is way easier to handle all that little code snippets used ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘shortcode linebreak’ is closed to new replies.