Y
Y
Yuri2018-03-18 08:56:54
WordPress
Yuri, 2018-03-18 08:56:54

How to display the content of the title tag in the anchor of the link in wordpress?

Good afternoon! I really ask for help.
There is a wordpress plugin. It renders the link like this:

$out['posts'] .= "<a href=\"".get_permalink( $post->ID )."\">$post->post_title</a>";

$post->post_title is the anchor of this link, which is taken from the h1 tag of the page. How to make this anchor not be taken from h1, but from the title tag of the same page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ti1, 2018-03-18
@ti1

Find out what plugin it is. the_title() might work too. Try it.

Y
Yuri, 2018-03-18
@seowind

Can anyone help me with this seemingly simple question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question