WP LOGBOOK

Little adventures building sites with Wordpress…

Archive for the ‘WordPress’ Category

How To Remove Comment Pagination in WordPress

leave a comment »

It’s easy but many people don’t have a clue. So I did a pictorial tutorial 2 steps guide. Google no more, it’s all here in this post. =)

Written by Yahya Ayob

March 17, 2011 at 10:00 pm

Posted in tutorial, WordPress

Tagged with

How To Control Your List of URL Links or Blogroll

leave a comment »

I read these resouces:

http://www.wpbeginner.com/wp-tutorials/how-to-organize-your-wordpress-blogroll-links/ which shows the actual example code that really works.

http://codex.wordpress.org/Function_Reference/wp_list_bookmarks which made me understand a little bit more of the parameters.

And I came up with these:

wp_list_bookmarks(‘title_li=&category_name=programs&before=<li>&after=</li>&orderby=id’);

It works! I hope this is useful to you guys too! Cheerz!

Written by Yahya Ayob

March 14, 2011 at 1:16 am

Posted in coding, tutorial, WordPress

How to embed videos from Facebook into WordPress

leave a comment »

I’ve seen the embed code before but I just could not remember where. So I searched it again on the web and Shoutpedia has a facebook note that explains how you can embed videos from Facebook into a WordPress post.

I can’t seem to paste the code here. So check out Shoutpedia note in Facebook.

Hope this helps. That’s all. =)

Written by Yahya Ayob

January 7, 2011 at 8:11 pm

3 Most Blogged About Infographics on WordPress

leave a comment »

Yup. Only 3 while social media topics rule the world wide web with infographics. Take a look at these 3 infographics about WordPress. There’s jazz, there’s the blue ocean concept and there’s boxy type. Take your pick.

Most Successful Movies

Infographic: Jazzy WordPress by Infographiclabs

 

 

Infographic: The Power of WordPressThe Power of WordPress by Tech King

Do you know of any other infographics about WordPress? Just share in the comments below. =)

Written by Yahya Ayob

January 6, 2011 at 8:11 pm

Posted in infographics, WordPress

Country List is now not a headache

leave a comment »

Happy New Year to everyone here! Thank you for reading my posts and do come back while I work on my projects. I only post articles that I find useful to my work and hopefully to others.

Today, I have to create a country list drop down menu in the Contact Form 7. And country list has always been a nightmare for me at least. There are many articles out there on how you can do the drop down list in a form with ASP, Javascript and what have you.

But I don’t really have much time to do all that. I use Contact Form 7 and perhaps work smart a little bit by just chunking away a list of common countries that you will find in all other contact forms out there.

And I found two websites that do just that. Check them out and let me know what you think!

Country list with ISO codes from Text Fixer

Country list without ISO codes from OpenConcept.ca

Written by Yahya Ayob

January 5, 2011 at 2:10 pm

Posted in plugin, thoughts, WordPress

How to display Twitter Updates in WordPress using this plugin

leave a comment »

So far, this is the best – Twitter for WordPress plugin which you can find it in the depository or Rick’s plugin page.

It’s really easy to install. There are options for widgets at the sidebar or plain coding. The beauty of using this plugin is that you can actually display a single tweet and style it as a bubble speech! Really cool!

Have you found any better Twitter updates plugins in WordPress?

Written by Yahya Ayob

December 7, 2010 at 10:22 am

Posted in plugin, WordPress

How to display post links from WordPress.com to WordPress.org blog

leave a comment »

I needed a way to show post links from my WordPress.com blog into my custom-designed WordPress.org site.

I was searching high and low on the web and finally I managed to read this post. Really help me to understand with his detailed explanation of using the code.

The trick is that if you are inserting this code in an already existing unordered list, it will not work and instead your site will give an error.

Just plainly insert the code without the unordered list

    .

    Hope this helps! Cheerz!

Written by Yahya Ayob

December 6, 2010 at 11:24 am

Posted in coding, tutorial, WordPress

How to display post count from a category

with 4 comments

I am just recording my work right now. I found this to work really well.


function wt_get_category_count($input = '') {
global $wpdb;
if($input == '')
{
$category = get_the_category();
return $category[0]->category_count;
}
elseif(is_numeric($input))
{
$SQL = "SELECT $wpdb->term_taxonomy.count FROM $wpdb->terms, $wpdb->term_taxonomy WHERE $wpdb->terms.term_id=$wpdb->term_taxonomy.term_id AND $wpdb->term_taxonomy.term_id=$input";
return $wpdb->get_var($SQL);
}
else
{
$SQL = "SELECT $wpdb->term_taxonomy.count FROM $wpdb->terms, $wpdb->term_taxonomy WHERE $wpdb->terms.term_id=$wpdb->term_taxonomy.term_id AND $wpdb->terms.slug='$input'";
return $wpdb->get_var($SQL);
}
}

Place above in your function.php file.

And then add below inside the regular php begin and end to any location you want the count to be displayed.
echo wt_get_category_count(categoryid);

Thanks to WPCode.net for the post here.

Written by Yahya Ayob

December 5, 2010 at 7:48 pm

Posted in coding, tutorial, WordPress

How to activate Multi-site in WordPress 3.0?

leave a comment »

Written by Yahya Ayob

November 12, 2010 at 7:03 pm

Posted in tutorial, videos, WordPress

Easy-To-Use Social Media WordPress Widget Plugin

leave a comment »

I like this widget plugin created by Tentblogger. Very easy to install and use as a widget in WordPress. Check out the link below to the video on how easy it is to use this WordPress widget plugin.

http://www.vimeo.com/16583546

Written by Yahya Ayob

November 11, 2010 at 7:15 am

Posted in plugin, videos, WordPress

Follow

Get every new post delivered to your Inbox.