K
K
Konstantin Teploukhov2018-05-25 17:51:36
WordPress
Konstantin Teploukhov, 2018-05-25 17:51:36

Strange actions of the a tag in wordpress, why does it behave like this?

Through this code I add a link (ACF plugin)

<a href="<?php the_field('instagram', 'option'); ?>" target="_blank" class="ico-social"><i class="fab fa-instagram"></i></a>

But where he throws me (supposedly on the inside page). Something stupid, why is that?
5b0822e54083e107243653.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2018-05-25
@Punkie

because you have acf now giving:
but it should give:
Either at the beginning of the link (before the output of acf) put a double slash like this:
It's not about WordPress.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question