single-mySlug.php works: archive-mySlug.php does not. Custom Post Type

Your setup would mean that archive-listing.php would be used at: http://martcol.co.uk/listing/ However, your URL: http://martcol.co.uk/listing/organisation/children/ Is not a post archive, it’s a taxonomy archive, specifically an organisation archive, and so archive-listing.php will never be used for it, since archive-listing is not a taxonomy archive template but a post archive template. Other than doing an include … Read more

Logic for Nearby places with post and categories

Could try a plugin called Geo mash up which turns WordPress into a GeoCMS, has nearby functionality built into it and can take long and lang values or addresses from custom fields. http://wordpress.org/extend/plugins/geo-mashup/ and try https://code.google.com/p/wordpress-geo-mashup/wiki/TagReference for the references.

Redirect authors from upload.php url to Home page in Multisite

If I understand you, he hook you want (WordPress 3.5.1) is load-upload.php. Proof of concept: function t_wpse_94284() { wp_redirect(home_url()); exit; } add_action(‘load-upload.php’,’t_wpse_94284′); That hook should fire only on /wp-admin/upload.php and, though I haven’t tested it, I think that your function should work just fine as it is.

Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script

What you need to do is simple. Place the file in the root of the website. Access this file via web browser. For example. type – www.yoursite.com/searchreplacedb2.php In the page, enter your database details, including username and password. Also, specify your localhost http address, which in most cases is localhost For example, in my testing … Read more

link posts to custom post type

Try Posts to Posts Plugin This plugin allows you to create many-to-many relationships between posts of any type: post, page, custom etc. A few example use cases: manually curated lists of related posts post series products connected to retailers etc. Additionally, you can create many-to-many relationships between posts and users. So, you could also implement: … Read more

Show posts in a list separated by day

Add a variable to hold the previous post’s date, and then add a <br /> or something when it changes. <?php $prev_date=””; // initialize to empty string query_posts($query_string.’&cat=-3′); while (have_posts()) : the_post(); ?> <?php if( strlen( $prev_date ) > 0 && get_the_time( ‘M j’ ) != $prev_date ): ?> <br /> <!– or whatever you … Read more