108 reputation
6
bio website
location Doha, Qatar
age
visits member for 1 year, 4 months
seen 19 hours ago

Oct
5
comment Add an image gallery to a custom post type?
Sigh, it's an iframe hack... but +1, it looks like it would work, and we have nothing better. It's because of stuff like this that I am now strongly favouring frameworks over CMSs.
Sep
18
awarded  Popular Question
Mar
27
comment Add an image gallery to a custom post type?
I have been using get_children and checking mime_type as a temporary solution, but I will switch to the [gallery] shorcode method so that the user can edit the gallery using the WP media manager on the post edit page. This will also make the plugin easier to integrate with other people's themes. I am not the first person to work on this site, and I probably won't be the last. It feels a little hackish to mess with the post content to manipulate the gallery, but it will do the job and there is no better way. Thanks Jörn!
Mar
27
accepted Add an image gallery to a custom post type?
Mar
24
revised Add an image gallery to a custom post type?
added 252 characters in body
Mar
24
comment Add an image gallery to a custom post type?
I also though wp_insert_attachment would add the attachment to the post's default gallery, creating it if necessary, but the codex makes no such promise (and the magic doesn't work for me). I wonder how the admin interface creates galleries...
Mar
24
revised Add an image gallery to a custom post type?
added 803 characters in body
Mar
24
awarded  Scholar
Mar
24
accepted How can I add a Categories page link to a menu?
Mar
24
awarded  Student
Mar
24
awarded  Editor
Mar
24
revised Add an image gallery to a custom post type?
added 91 characters in body
Mar
24
asked Add an image gallery to a custom post type?
Mar
17
asked How do I migrate custom post type data to a new format?
Feb
7
answered How can I add a Categories page link to a menu?
Feb
7
comment How can I add a Categories page link to a menu?
How would I find the url for the product categories? Do I have to create an arbitrarily named page, or is there a standard url like there is for plain normal categories, /category/uncategorized?
Feb
7
asked How can I add a Categories page link to a menu?
Feb
1
comment How to Handle Distributed Development Workflow
I'm glad I found this, I often find myself working on WP projects with devs in other cities. One point of pain is syncing the DB between sites: full urls are hardcoded all over the place, and so they have to be search/replaced when going from personal dev -> shared staging -> production. Sometimes those arrows point the other way X( and the SQL dump becomes awkward to keep under version control. Someday, I hope to simplify this down to a simple grunt deploy that can talk ftp and mysql. Why WordPress can't just prepend the domain name while rendering relative URLs is beyond me.
Jan
10
comment All scripts and style links return 404 on a local virtualhost
Defining WP_HOME and WP_SITEURL in wp-config.php doesn't have any effect. WordPress is still using 127.0.0.1.
Jan
10
comment All scripts and style links return 404 on a local virtualhost
I haven't installed yet, I'm going to change the site url in wp_config. I'll set using the dashboard after the install completes.