479 reputation
27
bio website about.me/cspires
location Burlington, NC
age 32
visits member for 2 years, 11 months
seen 15 hours ago

I build things. A lot in WordPress, some not.


2d
comment Cannot access install on subdirectory
Make sure you have an .htaccess file in your new subdirectory, along with a whole new site of WordPress files.
Nov
18
comment Enqueue custom jQuery UI theme to override Google CDN theme
You might find this helpful: stackoverflow.com/questions/8849684/…
Nov
18
revised Creating a Dev box from an existing production machine?
added 1078 characters in body
Nov
18
comment Creating a Dev box from an existing production machine?
Make sure you've copied over the .htaccess file in the root wp directory. There are specific rewrite rules that need to reside in there.
Nov
18
awarded  Yearling
Nov
18
revised Get all posts with a certain meta key, except for one with specific title
added 5 characters in body
Nov
18
comment Creating a Dev box from an existing production machine?
You can't access sub-blogs at all? Or just wp-admin?
Nov
18
answered Get all posts with a certain meta key, except for one with specific title
Nov
18
comment Set the background to a default image if there isn't a specified “featured image”
Your certain $src = get_bloginfo( 'stylesheet_directory') . '/lib/images/home1-1024x681.jpg'; returns an image? That the home1-1024x681.jpg image actually exists in your wp-content/themes/your-theme/lib/images/ directory? Try using get_stylesheet_directory_uri() or get_bloginfo('template_directory') instead of get_bloginfo( 'stylesheet_directory') .
Nov
18
comment Automatic detect my website url in the post and replace it with shortcode for embedding
OK - Perhaps update your question to include an actual example of what you'd like to achieve. Right now, the most help I can be is to say look into the_content filter (codex.wordpress.org/Plugin_API/Filter_Reference/the_content). Your filter would probably regex/search for your site URL, parse all necessary parameters, then update & return the content. I can come up with an example, but I have no idea if this is heading in the right direction without more specifics.
Nov
18
comment Automatic detect my website url in the post and replace it with shortcode for embedding
If your goal is to create a way to handle media embeds, Wordpress does this out of the box (codex.wordpress.org/Embeds). It handles many 3rd party sites, including Youtube and Vimeo.
Nov
18
revised Exclude categories For Custom post types
added 239 characters in body
Nov
18
comment Exclude categories For Custom post types
No, when registering a post type attaching a taxonomy is not required (though recommended according to the CODEX, as it might cause unexpected results with parse_query or pre_get_posts). Either way, 'taxononmies' => array('category' => array(1, 2, 3)) isn't correct. Terms are not set here. You would only need 'taxononmies' => array('category'), and manage the terms elsewhere. I've updated my answer to show how you could also attach the custom taxonomy via register_post_type.
Nov
18
answered Exclude categories For Custom post types
Nov
18
comment Loading a script with a dependency, is unloading another script's dependency
Just curious. Have you attempted to set the priority of your action queueing your scripts either above or below that of WooCommerce when queueing in the footer? I've run into instances with plugins using identical dependencies and it deregistering every instance of it, and for some reason this fixed it. (I didn't give it much thought). Never made a difference between queueing in the header vs. footer though.
Nov
18
revised Include content from one page to another
added 8 characters in body
Nov
18
revised ReOrder Post Within Categories plugin with featured image
edited body
Nov
18
answered Include content from one page to another
Nov
18
comment Pages in another language
Have you tried simply updating your wp-config.php? Change define('WPLANG', ''); to define('WPLANG','pt_BR');? If that doesn't achieve what you're looking for, maybe show us a section of your templates loop so we can look into alternatives.
Nov
18
comment ReOrder Post Within Categories plugin with featured image
An accept/upvote will suffice. Glad it worked. Also, if you're not already aware... if you're modifying the plugin source, updating the plugin will wipe this out.