• Resolved NatCornAdmin

    (@natcornadmin)


    I purchased the Pro version earlier today to take advantage of custom fields.

    All seems to work well except two where I am using a custom field to insert a link. The link is shown as including the custom fields name.

    I am using;

    Source: [scf-post-field name=”Source name”]

    Could it be because I am using ” ” around the shortcode?

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter NatCornAdmin

    (@natcornadmin)

    Sorry, I should make it clear that the code that I am having difficulty with is

    Source: <a href="[scf-post-field name="Source link"]">[scf-post-field name="Source name"]</a>

    In particular the Source link shortcode. The Source name is displayed correctly but the link is to a non-existent page on my own site which ends with the shortcode name.

    Thanks

    Plugin Author WPMadeasy

    (@wpmadeasy)

    Yes, probably you should not use the “same” quotes within the quotes. For example, double quotes within double quotes, or single quotes within single quotes.

    You should use it like:

    
    Source: <a href="[scf-post-field name='Source link']">[scf-post-field name="Source name"]</a>
    

    Notice the single quotes used to wrap shortcode attribute, in href tag. The other one is fine, since it is not wrapped in any outer quotes.

    • This reply was modified 5 years, 8 months ago by WPMadeasy.
    Thread Starter NatCornAdmin

    (@natcornadmin)

    Thank you this does indeed seem to have fixed the issue I had

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Links not working’ is closed to new replies.