Dzikri Aziz
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Twentyten: How can I change the loop for index.php?The loop is moved to
loop.php. You can try to copy this file toloop-index.phpand add whatever you need so the changes only applied to the index page loop.Forum: Themes and Templates
In reply to: the_meta works but get_post_meta doesn’t?Well,
get_post_metawill only return the value, try addingechobefore that 🙂Forum: Plugins
In reply to: If page has subpages – redirect to first child, else – stay on current pageI put michael’s code inside the loop but I got the ‘cannot modify header’ error. I then moved it to the top just before
get_headerand it works.Just my .2 🙂
Forum: Themes and Templates
In reply to: Include jQuery in header.php… PLEASE HELP ?!Oops. The last line of the above code should be:
add_action('init', mytheme_js);Forum: Themes and Templates
In reply to: Include jQuery in header.php… PLEASE HELP ?!wp_enqueue_script should be used with the file URL, not the PATH. Here’s what I use in my functions.php:
# Template Location define('THEME', get_bloginfo('template_url'), true); # CSS files location define('THEME_CSS', THEME . '/style', true); # JS files location define('THEME_JS', THEME . '/script', true); # Enqueue JS function mytheme_js() { if (is_admin()) return; wp_enqueue_script('jCycle', THEME_JS . '/jquery_cycle.js', 'jquery'); wp_enqueue_script('myScript', THEME_JS . '/myScript.js', 'jquery'); } add_action('init', mytheme);Forum: Fixing WordPress
In reply to: Uploaded file could not be moved to…I’m not with Media Temple, but with NFS (NearlyFreeSpeech.net). I experienced the exact problem, and what I did was:
- copied the 2008 dir to something else (eg. old2008)
- copy old2008 to 2008
- set the owner and group of the new dir to
me:web - give the group ‘web’ permission to write that dir
oh, i did all of this via SSH 😉
PS: sorry for my english