Posts by VagrantRadio

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says
By using WordPress codex for template tags: http://codex.wordpress.org/Function_Reference/the_time

And php date parameters: http://php.net/manual/en/function.date.php

<?php the_time('F jS, Y) ?>
Thankyou, I owe you big time.

30% of your next theme sales? Sweet.

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says

If I’m thinking correctly, you don’t want to display the option, you want to use it as a definition. Get rid of the “echo”.

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says
Hey guys thanks a lot, I’m getting there :) wizy and vagrant sorry about another silly question but the contact file is inside the includes folder should I use this path? I got an error require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php' );

say you theme includes folder found in wp-content/themes/YourTheme/includes

then use the below. there might be a better way to get the wordpress main root path instead of using tons of ../ :D
require( dirname(__FILE__) . '/../../../../wp-load.php' );

Nope, it has to be an absolute path with the code I posted. What you’re doing is trying to get a relative path.

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says
Hey guys thanks a lot, I’m getting there :) wizy and vagrant sorry about another silly question but the contact file is inside the includes folder should I use this path? I got an error require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php' );

Its an absolute path, so you want to set the folder to where your wp install is on your server.

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says
require($_SERVER['DOCUMENT_ROOT'].'/path/to/wp-load.php' );

define("WEBMASTER_EMAIL", "get_option('ivor_contact_email')" )
Exactly what I meant :D

;)

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says

I don’t think that would sell either way. It needs lots of work in the “design” area.

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says
require($_SERVER['DOCUMENT_ROOT'].'/path/to/wp-load.php' );

define("WEBMASTER_EMAIL", "get_option('ivor_contact_email')" )
629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says

Hey Ivor,

require($_SERVER['DOCUMENT_ROOT'].'/path/to/wp-load.php' );

If it’s an external file, then you can call get_option(‘your_option’).

629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says

By using WordPress codex for template tags: http://codex.wordpress.org/Function_Reference/the_time

And php date parameters: http://php.net/manual/en/function.date.php

<?php the_time('F jS, Y) ?>
629 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VagrantRadio says
I think, the reason can be the number of existing templates. The new templates isn’t very different from the older ones. So why not drop

I’ll agree with you on that point. They mostly all look and act the same.

by
by
by
by
by
by