Skip to main content
9 events
when toggle format what by license comment
Jun 26, 2013 at 16:56 vote accept Mary
Jun 26, 2013 at 16:33 comment added s_ha_dum @Mary : See the edit to my answer.
Jun 26, 2013 at 16:26 comment added Mary @JohannesPille yes the shortcode works fine when I type it into the editor... but I needed 2 things... 1 wanted to add it's value after the title and before contents... which cannot be done unless I edit the template itself. Second thing is that I needed this to be permanent (i.e. instead of adding the shortcode everytime I write a page), so it appears on that location (between title and contents) in all pages of specific template. Hope that helps :)
Jun 26, 2013 at 16:23 comment added Mary @s_ha_dum hi.. Thanks for your help... OK, the shortcode is like this: <!--date--> So, when I paste this to the WYSIWYG, I get the date (when I see preview the page). Now... I tried to put this inside the page template: echo do_shortcode('<!--date-->'); It appeared AS TEXT (not executed)... and it appeared where I wanted (after the title & before the contents). But how to make it just show the VALUE, something like: 26/06/2013 The shortcode is working, This value shows up, if I paste the shortcode in the edit area of the page.
Jun 26, 2013 at 16:13 comment added s_ha_dum @JohannesPille : I assumed it needed to be automatic, for every post/page, but I think there may also be markup concerns that complicate things.
Jun 26, 2013 at 15:48 review First posts
Jun 26, 2013 at 15:53
Jun 26, 2013 at 15:43 answer added s_ha_dum timeline score: 0
Jun 26, 2013 at 15:41 comment added Johannes Pille Follow-up question: "Preferably inserting the shortcode somewhere between the page title & the actual contents of that page" --> If you type the shortcode in the first line of the page body in the WYSIWYG-Editor, that's exactly what should happen, no?! Can you clarify how what you are asking is different from that scenario?
Jun 26, 2013 at 15:31 history asked Mary CC BY-SA 3.0