Return; how to insert a function? As follows, I want to insert the_permalink () in a href ()
If (a> B ){
Return'
';
}
I tried to use echo output. although the_permalink () can be inserted, the image will be placed above all texts, and the return output image will be in the preset position. I do not know how to solve this problem.
Reply to discussion (solution)
I don't understand what you mean
I don't understand what you mean
This means that there is no syntax error in this sentence, so that the value of the_permalink () can be output.
Return'
';
Obviously, the location is incorrect...
Are you right about writing this?
Of course, the_permalink is also return.
Are you right about writing this?
Of course, the_permalink is also return.
In this way, the output result is incorrect. the value obtained by href is null, but the value of the_permalink () is directly displayed.
1. what is returned by the_permalink?
2. what do you get after writing like this?
3. what do you expect?
1. what is returned by the_permalink?
2. what do you get after writing like this?
3. what do you expect?
1. the_permalink () returns http://xxxx.com/123.html
2. the picture has no link, and the picture shows a http://xxxx.com/123.html
3. add link http://xxxx.com/123.html to the picture
I guess: your the_permalink () will not return "http://xxxx.com/123.html", but echo" http://xxxx.com/123.html"
Problem solved