Return ''; how to insert a function?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.