Dynamic Web Lab

How to add facebook likebox in wordpress post or page using shortcode

If you want to show your facebook fanpage likebox in wordpress post or page then copy and past the code below in your theme function.php [php] //ADD FACEBOOK LIKE BOX SHORTCODE function fb_likebox($atts) { extract(shortcode_atts(array( "fb_link" => ‘https://www.facebook.com/techsloution4u’ ), $atts)); return ‘<h2 class="join-fb">Like Them On Facebook</h2> <fb:like-box href="’.$fb_link.’" width="595" height="100" show_faces="false" stream="false" header="false"></fb:like-box>’; } add_shortcode(‘fb_box’, […]

Read More

Some useful wordpress functions

Here is a list of some useful WordPress functions.This may reduce your development time. wp_mail() Some time we need to send email to the user.We can use this wordpress function wp_mail() to send email.It works just like the php email function but have better functionality. wp_loginout() Displays a login link, or if a user is […]

Read More

Enable excerpts in wordpress page

WordPress in default does not have the excerpt feature on Page.But you can enable this by entering a few lines of code in Theme functions.php of your template.If your theme doesn’t have function.php then please create one. [highlight]NOTE: Please take a backup of your theme before doing this theme hack.[/highlight] Here is the code : […]

Read More

WordPress Blank HTML5 theme

HTML5 comes with a lots of feature! Soon we need to use them in WordPress projects. I discontinue my project but here is another great html5 project you can check https://github.com/html5blank/html5blank

Read More

Add floating social icons to Thesis WordPress

In this tutorial i will show you how to add floating social icons to Thesis WordPress .Copy and paste this code for the floating social icons into your Custom Functions. Note: Always take a backup before any type of modification. [php] // Make the URL to share if( is_singular() ) { $url = get_permalink(); $text […]

Read More

Using Loops and Pagination in WordPress

Using loops you can show wordpress content.If you want to show the full content for the first two posts and then just the excerpt for the rest then this code is for you. [php] <?php $page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts("paged=$page&posts_per_page=5"); ?> <?php $count = 1; // Sets count to 1 on first […]

Read More

How to Add Facebook Like Button in WordPress

How to Add a Facebook Like Button in WordPress (Step-by-Step Guide) Adding a Facebook Like button to your WordPress website is a simple yet powerful way to boost engagement, increase social visibility, and grow your online presence. By enabling visitors to “like” your content directly from your site, you encourage greater interaction and expand your […]

Read More

Best plugin collection for wordpress template developer

Akismet Possibly the best way in the world to protect you from web spam. All In One SEO Pack Optimizes your WordPress blog for Search Engines. Inline PHP The plugin can execute php string in posts/pages, and display the output as the contents of posts/pages. PHP Code Widget The normal Text widget allows you to […]

Read More

Blank WordPress Theme

The main purpose of this Blank WordPress Theme  to make your WordPress theme development time shorter. The main features of Blank WordPress Theme (version 1) are: The sidebar is widget-ready. Loads google hosted jQuery. Registers the sidebar widget area. Has CSS reset. Theme option page. Post Thumbnail support. Lightweight only 15KB. The new version 1.5 […]

Read More