Setting up a wordpress network with third level domains
You could use the Domain Mapper plugin for this. Drawback being that you’d have manually configure each subblog.
You could use the Domain Mapper plugin for this. Drawback being that you’d have manually configure each subblog.
In any foreach loop, the last value of the array being looped over remains after the end of the foreach loop. That is why one should actually always unset that value after the foreach loop is done. wp_list_pluck() is also just a basic foreach loop if $index_key is not passed. Also, as with any foreach … Read more
Newer hosting providers that cater specifically to WordPress usually have tools in place to ease this pain. I put my clients on Pantheon which has this neat Git-enabled workflow, where code only moves up (from dev to staging to production) and DB stuff only moves down (vice versa from the code). Copying a database from … Read more
I copy pasted your code into my dev environment, changed nothing but the page name, and it works just fine. Are you sure that it’s not being enqueued and you just have it pointed wrong or that the page is not named incorrectly or something?
This is untested, but the callback function is provided with an array of arguments, $args which give (if any) the paramters provided with the shortocode. The zeroth entry sometimes contains the name of the shortcode used (e.g. public_email). By sometimes I mean… The zeroeth entry of the attributes array ($atts[0]) will contain the string that … Read more
You can use the WordPres Plugin Directory Slurper shell script by Mark Jaquith to download the the most recent version of all plugins from the WordPress.org repo. Once the plugins have been downloaded, you can grep for the plugin/hook prefix you want to check, e.g.: grep -r –include=*.php ‘wpseo_’ ./ Unzip the WordPres Plugin Directory … Read more
Your custom post type looks like it’s set up properly. It works on my test install. Try this instead of whatever add_role and add_cap code you’re currently using. (For testing purposes only. Don’t use it in production code, for reasons outlined below.) It’s working for me: function prefix_set_up_supplier_role(){ remove_role( ‘supplier’ ); add_role( ‘supplier’, ‘Supplier’, array( … Read more
I found this plugin called EditFlow that says it allows you to add custom statuses. Apparently it’s designed for use in a newsroom. (FYI, I searched the WordPress plugins directory for “custom post status.”)
See How do you create a “virtual” page in WordPress for the solution. This should work for your case as well.
Quite an edge case, but the accepted encoding types should be filterable nonetheless. I can see a few situations where fine, granular control over this header would be useful (as in adding an API that uses non-standard encoding). So, while there’s no stock hook for this, I have created a Trac ticket for it and … Read more