Skip to content
Hey, I'm
KRIS THAPA
  • Home
  • Why Me?
  • About Me
  • Contact Me
  • Services

Category: Wordpress

list child pages

July 24, 2011 admin Leave a comment

<?php $children = get_pages(‘child_of=’.$post->ID.’&parent=’.$post->ID); if( count( $children ) != 0 ) { ?> <ul> <?php foreach ($children as $pagg) {…

Continue Reading →

Posted in: Wordpress

Pull content from specific page, post with preserve formatting

July 12, 2011 admin Leave a comment

$my_id = 100; $post_id_100 = get_post($my_id); $content = $post_id_100->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); echo $content;

Continue Reading →

Posted in: Wordpress

List Specific Pages with Title, Excerpt and Link

July 10, 2011 admin Leave a comment

<div> <?php global $post; $myposts = get_posts(‘post_type=page&include=100,200,300&orderby=post_date&order=ASC’); ?> <ul> <?php $posts_counter = 0; ?> <?php foreach( $myposts as $post )…

Continue Reading →

Posted in: Wordpress

8 Steps to clean a hacked WordPress blog

June 11, 2011 admin Leave a comment

http://knowit.co.nz/2010/01/8-steps-to-clean-a-hacked-wordpress-blog

Continue Reading →

Posted in: Wordpress

Contact Form 7 – spam controller QUIZ

admin Leave a comment

<p>Please answer the following<br /> [quiz quiz-4711 class:quiz “1+1=?|2” “1+2=?|3” “1+3=?|4” “1+4=?|5” “1+5=?|6” “1+6=?|7” “1+7=?|8” “1+8=?|9” “2+1=?|3” “2+2=?|4” “2+3=?|5” “2+4=?|6” “2+5=?|7” “2+6=?|8”…

Continue Reading →

Posted in: Web Development, Wordpress

Remove title from wp list categories

December 25, 2010 admin Leave a comment

function wp_list_categories_remove_title_attributes($output) { $output = preg_replace(‘` title=”(.+)”`’, ”, $output); return $output; } add_filter(‘wp_list_categories’, ‘wp_list_categories_remove_title_attributes’);

Continue Reading →

Posted in: Wordpress

WordPress customize read more link and custom excerpt

December 19, 2010 admin Leave a comment

function improved_trim_excerpt($text) { global $post; if ( ” == $text ) { $text = get_the_content(”); $text = apply_filters(‘the_content’, $text); $text…

Continue Reading →

Posted in: Wordpress

Page/Post ID in header footer

December 12, 2010 admin Leave a comment

global $wp_query; $post_id = $wp_query->post->ID; if ($post_id==”)

Continue Reading →

Posted in: Wordpress

Font Embed – Cufon

December 7, 2010 admin Leave a comment

Cufon http://davidwalsh.name/cufon http://cufon.shoqolate.com/generate/

Continue Reading →

Posted in: Wordpress

My Favorite WordPress Plugins

admin Leave a comment

Create Tables inside post/page : WP-Table Reloaded Scroll to top plugin will add a button that hovers in the bottom…

Continue Reading →

Posted in: Wordpress

Post navigation

Page 2 of 3
← Previous 1 2 3 Next →

Recent Posts

  • Overlay a layer
  • How to add a color overlay to a background image?
  • Fancy Checkmark Icons

Recent Comments

  • Joy Gordon on How to hide PHP errors on your Joomla site?
  • Elmer Skafidas on How to hide PHP errors on your Joomla site?
  • Anissa Kjellsen on How to hide PHP errors on your Joomla site?
Copyright © 2026 Hey, I'm