How to convert that page to a wordpress template? [closed]
ok, i found the answer: In thumbs.php change ../images and ../thumbs to ../wp-content/themes/YOURTHEMENAME/images, ../wp-content/themes/YOURTHEMENAME/thumbs. Same in js.
ok, i found the answer: In thumbs.php change ../images and ../thumbs to ../wp-content/themes/YOURTHEMENAME/images, ../wp-content/themes/YOURTHEMENAME/thumbs. Same in js.
I ended up just switching plugins…I am now using MapPress: http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/
If you want a list of the terms, use get_terms(): <?php $terms = get_terms(‘pa_main-genre’, array(‘orderby’ => name,)); ?>
Of course, use this: http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page Example: if(is_page(‘Contact Us’)){ //contact us h1… } else….
Your regex is a little flaky – you shouldn’t specify the start anchor ^, and some support trailing slashes, others don’t – plus I’d opt for a better expression for matching page numbers. And you could certainly trim it down to: add_rewrite_rule( ‘activate/([^/]*)/?$’, ‘index.php?pagename=activate&akey=$matches[1]’,’top’ ); add_rewrite_rule( ‘users/?$’, ‘index.php?pagename=users’,’top’ ); add_rewrite_rule( ‘users/(most-active|recent|oldest|by-username)/?$’, ‘index.php?pagename=users&sort=$matches[1]’,’top’ ); add_rewrite_rule( ‘users/(most-active|recent|oldest|by-username)/paged/([0-9]{1,})/?$’, … Read more
When you setup the SSL certificate for your domain on your web server, your WordPress site will immediately be accessible via http / https connections without any extra configuration. Any configuration is required when you want your website or its backend (wp-admin / wp-login.php) to load ONLY via SSL (HTTPS). But there’s at least one … Read more
Theres a filter you can hook on to. apply_filters( ‘get_delete_post_link’, wp_nonce_url( $delete_link, “$action-{$post->post_type}_{$post->ID}” ), $post->ID, $force_delete ); Check the raw function here: http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/link-template.php#L954 Can’t advise much else without seeing your code. Edit: its nasty buy you can do add_filter( ‘get_delete_post_link’, ‘some_function’, 20 ); function some_function() { wp_redirect( home_url(“https://wordpress.stackexchange.com/”) ); exit; }
If you want to simple alter in the main loop then using pre_get_posts hook will be best. You can find its references in WordPress codex as well. Also here is a post how to make pagination work with your custom loop http://devotepress.com/coding/wordpress-custom-loop-pagination/. hope this helps you
as you seem to be using a page template, you can edit this even more and directly integrate the essential header and footer code into that template; have a look at this example I recently made up: http://pastebin.com/ZiteZrUX <?php /** * Template Name: Blank Page Template * * @package WordPress * @subpackage Twenty_Eleven */ ?> … Read more
I found this plugin that let me create custom options and set the value dynamically in my templates. Worked out fine http://wordpress.org/extend/plugins/custom-options-plus/