Tag Info

Hot answers tagged

2

Don't use the publish date as the event date. Save the event's date in a custom field in the format yyyy-mm-dd, and use a meta query to order events by that date. Also see pre_get_posts for ordering events correctly on archive pages without running a new query.


2

You might be just best off doing a redirect with the htacess file. Redirect 301 / http://www.mynewwebsite.com Further reading here: http://www.htaccessredirect.co.uk/


1

Yes, there is a SQL-based method to do this. Just run this SQL (it will convert all tags to categories, if you want to convert only some of them, you have to add your conditions to WHERE clause): UPDATE wp_term_taxonomy SET taxonomy='category' WHERE taxonomy='post_tag' You can do this using $wpdb: $wpdb->query( "UPDATE $wpdb->term_taxonomy SET ...


1

Your question is far too broad; you need to look at the CSS and HTML source and theme that site is based on to find out how that layout is done. Look at other free WP themes to find a similar layout. And learn how to use Firebug with Firefox, or use the developer tools in Chrome or Safari or IE to see the CSS and HTML of that site and the site you're trying ...


1

It seems that you might be looking for widgets. Here is what I'm using on my theme. The first thing to do is to register your widgets function sidebars_register() { $mws = array ( 'sidebar-3' => array ( __( 'Header Widget One', 'pietergoosen' ) => __( 'Header widgets for homepage', 'pietergoosen' ), ...


1

I've looked for this some time ago. Best thing you can do is change the default contact form. Filter you can use: wpcf7_default_template Info can be found in contact-form-7/includes/functions.php file line 63 The filtered variable is: $template = '<p>' . __( 'Your Name', 'contact-form-7' ) . ' ' . __( '(required)', 'contact-form-7' ) . '<br ...


1

While the plugin might solve your problem you could try something direct with WordPress API: add_action( 'template_redirect', 'wpse_142191_all_redirect' ); function wpse_142191_all_redirect() { if ( !is_user_logged_in() ) { wp_redirect( 'http://other-site.com', 301); exit; //always die or exit after redirect } } Be careful ...



Only top voted, non community-wiki answers of a minimum length are eligible