This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WordPress Bilbao #wpbilbao @ Plugins Básicos + Debate abierto | |
------------------------------------------------------------- | |
http://www.wpbibao.es | |
http://www.meetup.com/WordPress-Bilbao/ | |
https://twitter.com/wpbilbao | |
https://wpes.slack.com/ | |
Enlace post | |
----------- | |
http://www.fernan.com.es/plugins-basicos-wordpress/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // remove this line | |
//* Activate Manual excerpt on Pages | |
add_post_type_support('page', 'excerpt'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SQL update to change domain name in WordPress database | |
// wp_options | |
UPDATE wp_options SET option_value = REPLACE (option_value, 'demo.domain.com', 'www.domain.com'); | |
// wp_postmeta | |
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'demo.domain.com', 'www.domain.com'); | |
// wp_options | |
UPDATE wp_posts SET post_content = REPLACE (post_content, 'demo.domain.com', 'www.domain.com'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display Soliloquy WordPress Slider in Home of Front Page after header - Genesis Framework | |
add_action( 'genesis_after_header', 'recreate_soliloquy_slider' ); | |
/** | |
* Display Soliloquy WordPress Slider in Home of Front Page after header - Genesis Framework | |
* Scope: Homepage or Front page. | |
* @author Sridhar Katakam | |
* @link http://sridharkatakam.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change domain URLs from old to new domain (both domains parked on top of the same hosting) | |
# With www or without www | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [OR] | |
RewriteCond %{HTTP_HOST} ^olddomain.com$ | |
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Domain 301 redirection from without www to www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^domain.com [NC] | |
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Redirect 301 from HTTP to HTTPS | |
#First, rewrite any request to the correct domain (with www) | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
#Then, rewrite to HTTPS: | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress WP_Query with just sticky posts - page.php or index.php template | |
**/ | |
get_header(); // loads header.php template ?> | |
<?php $custom_query = new WP_Query('posts_per_page=1'); ?> | |
<div id="wrap-sample" class="blog-sample clearfix"> |
OlderNewer