icl_link_to_element and icl_object_id


Example usage

Example Purpose Produced HTML
<?php icl_link_to_element(10); ?> Link to page 10 (support page) <a href=”/support/”>Support</a>
<?php icl_link_to_element(10,’post’,__(‘Get help’)); ?> Link to support page with an alternative link text <a href=”/support/”>Get help</a>
<?php icl_link_to_element(10,’post’,false, array(‘category’=>’products’,’priority’=>’high’); ?> Link to support page and add two arguments <a href=”/support/?category=products&amp;priority=high”>Support</a>
<?php icl_link_to_element(10,’post’,false,’priority’=>’high’,’faq’); ?>
<?php icl_link_to_element(3,’tag’); ?> Link to tag with ID 3 (our ‘News’ tag) <a href=”/tag/news/”>News</a>


icl_link_to_element 可以以自动生成对应翻译页面的链接,但是不能给链接加上 自己想要的 class 或者 id


<a href=”<?php echo get_permalink(icl_object_id(338, ‘page’, true)) ?>”><?php echo get_the_title(‘338’); ?></a>


6447 评论 在 "icl_link_to_element and icl_object_id"

排序:   最新 | 最旧 | 得票最多

vb0SNR Spot on with this write-up, I seriously think this web site needs much more attention. I all probably be returning to see more, thanks for the advice!

plumbing can actually be a hardwork specially if you usually are not very skillfull in undertaking residence plumbing::

You have made some really good points there. I checked on the net to learn more about the issue and found most people will go along with your views on this web site.|

this wonderful read!! I definitely really liked every little

Just wanna admit that this is handy , Thanks for taking your time to write this.

Thank you for the auspicious writeup. It if truth be told

Really enjoyed this article.Really thank you! Keep writing.

lol. So let me reword this. Thank YOU for the meal!!

I used to be able to find good advice from your articles.

Wonderful article! We are linking to this great content on our site. Keep up the good writing.

very good put up, i certainly love this web site, carry on it

Way cool! Some very valid points! I appreciate you penning this article and also the rest of the website is really good.

Very good blog post.Thanks Again. Awesome.

This can be the worst write-up of all, IaаАа’б‚Т€ТšаЂаŒаАа’б‚Т€ТžаБТžve study

Wow! Thank you! I constantly needed to write on my website something like that. Can I include a fragment of your post to my site?

Wow! Thank you! I always wanted to write on my site something like that. Can I include a part of your post to my site?

Pretty great post. I simply stumbled upon your weblog and wished to say that I ave really enjoyed surfing around

There as certainly a great deal to learn about this subject. I love all the points you have made.

Muchos Gracias for your article post.Really looking forward to read more. Fantastic.

I surely did not realize that. Learnt some thing new these days! Thanks for that.

whoah this blog is excellent i love reading your posts. Keep up the great work! You know, a lot of people are searching around for this info, you could aid them greatly.

Woman of Alien Perfect get the job done you have got completed, this site is de facto great with great data. Time is God as strategy for maintaining every little thing from going on directly.

Wow, great blog article.Thanks Again. Will read on…

Way cool! Some extremely valid points! I appreciate you penning this write-up plus the rest of the website is extremely good.

Very good post.Really thank you! Cool.

This is a topic which is close to my heart Take care! Exactly where are your contact details though?

Really enjoyed this article. Really Cool.

Wow, incredible blog format! How long have you ever been blogging for? you make running a blog glance easy. The overall glance of your site is excellent, let alone the content material!

I value the blog article.Much thanks again. Really Cool.

Thank you for your blog article.Much thanks again. Fantastic.

I value the post. Really Great.

We appreciate you the specific beneficial specifics! I might not have identified out this specific personally!

Very neat blog post.Much thanks again. Much obliged.

I will right away grab your rss as I can at find your e-mail subscription link or e-newsletter service. Do you ave any? Kindly let me know in order that I could subscribe. Thanks.

I think this is a real great blog article.Really thank you! Want more.

Quite right! It There is apparently a lot to realize about this. I suppose you made some good points in features also.

Great article. Will read on…

I truly appreciate this article.Really thank you!

Valued Personal Traits Hello, you used to write great, but the last several posts have been kinda boring I miss your great writings. Past few posts are just a bit out of track! come on!

Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is great, let alone the content!

Thanks so much for the post.Really looking forward to read more.

If I start a blog on Myspace, will it get listed in search engines like Google? If so, is there a way to keep them from being crawled?.. Thank you.

I really like and appreciate your article.Much thanks again. Want more.

Thank you for your blog.Thanks Again. Much obliged.

Great article post.Much thanks again. Awesome.

Major thankies for the article. Really Cool.

Hey, thanks for the article post.Thanks Again. Awesome.

Very neat article post. Fantastic.

Thanks so much for the post.Really thank you! Will read on…

Major thankies for the blog article.Much thanks again.