I hereby claim:
- I am faisalhmohd on github.
- I am mohdfaisal (https://keybase.io/mohdfaisal) on keybase.
- I have a public key whose fingerprint is 042A A11E D2D7 BE9B FA2B B210 3E79 35BE C478 2F82
To claim this, I am signing this object:
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] |
// .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(); | |
}); |
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 { |
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' ), | |
), |
<?php | |
$paged = $_GET['paged']; | |
$perpage = 15; // Choose the number of posts per loop | |
$args = array ( | |
'pagination' => true, | |
'posts_per_page' => $perpage, | |
'post_type' => 'post', | |
'offset' => $paged*$perpage | |
); |
<?php | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$perpage = 5; | |
$args = array ( | |
'pagination' => true, | |
'posts_per_page' => $perpage, | |
'post_type' => 'post', | |
'paged' => $paged | |
); |
# Running on ubuntu:latest | |
FROM ubuntu | |
# Update and install NodeJS + NPM | |
RUN apt-get update | |
RUN apt-get install -y nodejs npm | |
# Creating symlink | |
RUN ln -s /usr/bin/nodejs /usr/bin/node |
I hereby claim:
To claim this, I am signing this object:
<?php $ID = 0; // Page ID to refer ?> | |
<a href="<?php echo get_page_link($ID); ?>">Page Name</a> | |