133 reputation
6
bio website
location
age
visits member for 1 year, 5 months
seen May 10 at 8:05
stats profile views 4

Feb
25
accepted register_nav_menus, then create menus programatically
Feb
22
answered register_nav_menus, then create menus programatically
Feb
22
comment register_nav_menus, then create menus programatically
if you know of an easier / simpler way to acheive that I'm definitely all ears :)
Feb
22
comment register_nav_menus, then create menus programatically
Because when I make a WP site, most of the time I want a specific set of top-level pages in the nav menu (not all of them). This means install wp -> install theme -> add some example pages -> add menus, which is inefficient when you do it 10 times. It would be a time-saver to auto-generate the menu on theme install, then make appropriate edits later. The other side of the coin is that the theme is used by some of my collegues and I often have to go in and create the main nav menu for them; they don't realise it needs to be created each time.
Feb
22
comment register_nav_menus, then create menus programatically
great answer, and very useful info - but I still do want to create the menus themselves programatically. I know I don't have to but whenever I install my theme the first thing I do is create the main nav menu as 99% of the time it is always a custom menu. Your point about wp_nav_menu falling back is good to know though :)
Feb
22
asked register_nav_menus, then create menus programatically
Nov
23
accepted the_post_thumbnail('my_image_size') always outputs full image
Nov
23
comment the_post_thumbnail('my_image_size') always outputs full image
it was the thumbnails, I must have added the image size after putting the images up. what an idiot I am lol. someone put that in an answer and I'll accept.
Nov
23
comment the_post_thumbnail('my_image_size') always outputs full image
not my theme, but couldn't speak for all plugins. I have none installed that do anything with media, but you never know. regenerating thumbnails at the moment
Nov
23
comment the_post_thumbnail('my_image_size') always outputs full image
yeah I uploaded the images after writing that part of the theme - I think. To be sure I'll regenerate them again now though, that might be it.
Nov
23
asked the_post_thumbnail('my_image_size') always outputs full image
Sep
21
awarded  Critic
Jun
10
accepted gallery shortcode exclude not working
Jun
10
comment gallery shortcode exclude not working
good suggestions but didn't help. I wasn't using include at all, just what I posted. I think something was not quite right with that particular theme or install of WP, because I tried this on another WP site and it worked as expected. Havent figured out what went wrong though.
Jun
8
revised gallery shortcode exclude not working
added 255 characters in body
Jun
8
comment gallery shortcode exclude not working
yep, just checked the database. the entry in the posts table that is my featured image has ID 93.
Jun
8
comment gallery shortcode exclude not working
not completely, could be wrong. How I find the id is like this: $featuredId=get_post_thumbnail_id();. When I echo that I get 93. But now you've said that, I'm going to see if I can find out if that's right
Jun
8
asked gallery shortcode exclude not working
May
28
accepted order posts by meta value on posts page
May
25
comment order posts by meta value on posts page
@m0r7if3r that is certainly another option, however it gives birth to another question - how to change the meta value (i.e running str_to_time() on it) before it's saved on wp-admin. And the effect is still the same - I'm going to require another query regardless, the only difference is that I can use query_posts() instead of writing the SQL myself. If you have a better way, feel free to post an answer and if it's good I'll gladly accept it over my own