hategrinder
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How To Setup Cron Job To Run .php Filewhat is the -q option for? try without it and first check the output of the command you’re trying to schedule (/usr to php in this case) and if it is ok cron should work
Forum: Plugins
In reply to: Problem with global $post in widgetok, thanks I got the idea, though imho it could be better to add some action assigning $post to some other global variable instead of modifying template files
Forum: Plugins
In reply to: How to add a PHP script to a page?thanks! that works fine!
Forum: Plugins
In reply to: How to insert something to where a post would be?Yeah, l did it 🙂
add_filter('the_posts','tester_addposts'); class tester_ad { public $ID="0"; public $post_content="AD"; public $post_title="AD"; } function tester_addposts($posts) { $adunit=new tester_ad(); $adunit=array($adunit); return array_merge($adunit,array($posts[0]),$adunit,array_slice($posts,1)); }Forum: Plugins
In reply to: How to insert something to where a post would be?Thanks, however I suppose it is possible without modifuing the template. Any ideas on doing that would also be cool…
Forum: Plugins
In reply to: How to modify tag cloud with plugin?Thanks.
Forum: Plugins
In reply to: Get the type of page for filter?Thanks!
Forum: Plugins
In reply to: How to get the folder with the theme?Otto42, thanks! Hovewer in this case TEMPLATEPATH won’t work, probably because this constant is redefined after the theme is changed and switch_theme is executed before, so it returns the path to current template, but get_template_directory() returns the new path to template and that’s cool:) Thanks once again)