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
add_action( 'init', 'register_custom_post_type' ); | |
function register_custom_post_type() { | |
register_post_type( 'member', | |
array( | |
'labels' => array( | |
'name' => __( 'Members' ), | |
'singular_name' => __( 'Member' ), | |
'add_new' => __( 'Add New Member' ), | |
'add_new_item' => __( 'Add New Member' ), | |
), |
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
var postSize = $(".posts div").size(); | |
var postLimit = 8; | |
var postDisplay = 8; | |
var endPosts = false; | |
$('.posts div:lt('+postDisplay+')').show(); | |
$('#loadmore').click(function () { | |
if (postDisplay + postLimit <= postSize) { | |
postDisplay += postLimit; | |
} | |
else { |
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
// .content containing paragraphs | |
var content = $('.content').html(); | |
var contentArray = content.split("</p>"); | |
// Displaying only the first paragraph | |
$('.content').html(contentArray[0]); | |
// Displaying the rest after clicking on .reademore | |
$('.readmore').click(function () { | |
$('.content').html(content); | |
$('.readmore').hide(); | |
}); |
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
Options +FollowSymlinks -MultiViews | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{REQUEST_URI} ^(.*/)index\.html$ [NC] | |
RewriteRule . http://www.%{HTTP_HOST}%1 [R=301,NE,L] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule . http://www.%{HTTP_HOST}%{REQUEST_URI} [NE,R=301,L] |
NewerOlder