get_post_title/url in html of post
-
Hi there,
I’m really keen to implement a Wikipedia Citation Generator on my website : see for example
https://www.powerhousemuseum.com/collection/database/?irn=207936 (if
you scroll down to the bottom)I am struggling to find instructions on how to do this online. I think
it should be pretty easy but I am not sure where to start.this is the html from the powerhouse museum example
</div>Copy and paste this wiki-markup: <br /><br /><div style="background-color:#ddddcc; border: solid 1px #333333; padding: 5px; margin-bottom: 1px; font-family: Courier, monospace; text-align:left;font-size:11px">{{cite web |url=https://from.ph/207936 |title=Australian Six motor car |author=Powerhouse Museum |accessdate=2 February 2012 |publisher=Powerhouse Museum, Australia}}</div>
It seems like i just need a way of automatically calling in the post-title, the URL, and
the date.I am not sure whether I can do this from the post html or whether i need to go into the php files.
it would ideally appear at the end of every post.
I have played around in the post html with title=<?php get_the_title(); ?> but it doesn’t work.
Any ideas or pointers in the right direction would be much appreciated
thanks!
adam
- The topic ‘get_post_title/url in html of post’ is closed to new replies.