![]() |
|
How to get link of current news and album? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: How to get link of current news and album? (/thread-5859.html) |
How to get link of current news and album? - slaattnes - 2009-09-17 Hi How can I get the current news link in a link like this: `<a href=â€http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>†title=â€Click to share this post on Twitterâ€>Share on Twitter</a>` It's the `<?php the_permalink(); ?>` I dont get. I've tried all sorts of variations and I've read throug the documentation, but I can't get it right. getNewsLink, getNewsAlbumURL... and so on. Someone please help:-) How to get link of current news and album? - slaattnes - 2009-09-17 I found a dirty solution: `<a href=â€http://twitter.com/home?status=Currently reading http://mydomain.com/news/<?php echo getNewsTitleLink(); ?>†title=â€Click to share this post on Twitterâ€>Share on Twitter</a>` How to get link of current news and album? - acrylian - 2009-09-17 `<?php the_permalink(); ?>` is a Wordpress function anyway.... There are several ways to do this: `getNewsURL(<titlelink of the news articles>)` (if in news context you can get the titlelink with `$_zp_current_zenpage_news->getTitlelink()`) Or by combining: `echo getNewsBaseURL()."/".getNewsTitlelink()`. Probably indeed a good idea to have a function for the full link, I will add that for the next version. |