• t
  • g
  • B
  • Z
  • @
  • e

portfolio & blog of senior web developer, Fahd Murtaza



  • About
  • Portfolio
  • WordPress
  • CV
  • Blog
  • Contact


  • About
  • Portfolio
  • WordPress
  • CV
  • Blog
  • Contact

WordPress: Restricting results by pages and posts on search pages

April 11th, 2011 by Fahd

Sometimes you want to change the way wordpress search works, for example you want it to force to search pages only or just posts. The code for that would be something like this

//Search only pages
function is_type_page() {
global $post;
if ($post->post_type == 'page') {
return true;
} else {
return false;
}}

//Search only posts
function is_type_post() {
global $post;
if ($post->post_type == 'post') {
return true;
} else {
return false;
}}

Then in the search page, i.e search.php just use this code

while ( have_posts() ) : the_post();
if (is_type_post()) continue;

Above code will restrict search to the pages only. Similarly you can restrict pages to be excluded from search with the following code

while ( have_posts() ) : the_post();
if (is_type_page()) continue;

Hope that helps :)

Posted in Blogging, Wordpress

2 Comments

I am on home page of oDesk, feels great

March 17th, 2009 by Fahd

Hi guys

I am feeling good right now. Have been working on oDesk from Feb 17, 2009. And its good you get paid on hourly basis. I like oDesk the most among freelancing sites I have worked on. Anyhow, I took a few screen shots to show you that I was once featured on home page on oDesk.

(more…)

Posted in PHP, Portfolio, Web Development, Wordpress

1 Comment

Yahoo Shortcuts

September 9th, 2008 by Fahd

 Enhance your blog posts with Yahoo! Shortcuts.

Enhance your blog posts with Yahoo! Shortcuts.

As you type the content for your blog post, this plugin looks for Flickr Photos, Maps to any locations that you might mention in the post, any products that are listed or even related news to your blogs post.

If your content regularly mentions some companies regularly, Yahoo shortcuts can bring up latest financial information related to that company.

Relevant search results would also come up for certain terms like in the image shown UNIX Pipes would pop up a Yahoo shortcut with relevant contextual search results. Some bloggers may find some shortcuts annoying and irrelevant to their blogs content, but some might really find it useful. It all depends on what you blog about. (more…)

Posted in Blogging Engines, Open Source, PHP, Plugins, Wordpress

Leave a comment

WordPress; the new cool version 2.5 enjoyyy

March 30th, 2008 by Fahd

Yeah as always I am one complete day late to know about the new release of wordpress. Its really cool. I just downloaded and installed it. As its famous for its 5 minutes install; it has great new features and a neat and clean interface, I think a hundred times better than the previous version thats 2.3 if I am not wrong (2.3.3), yeah I just checked as I am writing this post on the old platform and I just needed to scroll down this post window (my wordpress blog is an auto install by Fantastico provided by my host in Cpanel)

Anyhow right now I am playing with the latest version (2.5) and its simply awesome.

See the difference. Its just obvious. Its on full page for this blog post. (more…)

Posted in Blogging Engines, Open Source, PHP, Wordpress

Leave a comment

WordPress Plugin: Get recent posts within a dynamic wordpress content page or post from 2 different categories

March 15th, 2008 by Fahd

OK I usually work on the wordpress stuff and do all the fancy things with wordpress on these two Blogs of Josh Freedman

His press room at http://www.6seconds.org/press/
His blog is at http://6seconds.org/blog/


I spent my times for release and support my plugin. If you like my plugin and enjoy the support, do consider to make a donation to me. Thank you :D . I am available for hire too :)

You can view the plugin working at his press room at http://www.6seconds.org/press/

Its showing the 2 different categories’ recent posts. The number of the posts can be defined in the plugin’s only php file.
Wordpress Plugin: Get recent posts within a dynamic wordpress content page or post

OK how to do such thing?

I am going to release a modified generic open source version if Josh allows me.

Update 1:33 AM : Yeah he allows me :) so here is the download material (on full post page).. (more…)

Posted in Blogging Engines, Open Source, PHP, Plugins, Web 2.0, Web Development, Web Development Software, Wordpress

Leave a comment

Are you social on the web?

February 29th, 2008 by Fahd

Do you wanna be social? Are you social on the web? Is your website in accordance with the “social” requirements as laid out by the web 2.0 standard. Do you want to say “yeah” but are afraid of saying it as it might be wrong as you still dont know what exactly 2.0 is. OK, let me add something (thats not new off course but clarifies a little about the social aspect of the web). The web 2.0 is about the usability factor of the web. Sites like Flickr and Google calendar are a very good example of usability. Both have social factors about them. Like on Flickr, people can comment on your photos, photos that you want to share. Also you can post photos to your blog right from your Flickr account and there are dozens of good services that can be integrated with Flickr through an API provided by Flickr. It uses AJAX for making it more usable but yeah the Social Factor like submitting your photos to public groups of similar interests make it (more…)

Posted in Open Source, Plugins, Social Networking, Web 2.0, Web Development Software, Wordpress

Leave a comment

Starting a new project “WP Theme Agent”

January 17th, 2008 by Fahd

Check my latest quote “A wordpress theme a day doesn’t keeps a geek away! “, yeah off course to serve my fellow wordpress community and my loving wordpress blogging engine. All the wordpress geeks a very well aware of the fact that how cool wordpress theming can be, I would rather boast there is no better theming engine for blogs out there. Anyone with normal PHP understanding can easily customize a theme for their blog or even get a pre-done template and convert it into wordpress theme with few easy steps.

Posted in A theme a day, Blogging Engines, CSS, Open Source, PHP, Themes, Web Development, Web Development Software, Wordpress, WP Theme Agent

Leave a comment

Just finished up Press and Blog on www.6seconds.org

January 3rd, 2008 by Fahd

Just finished the wordpress theme called 6seconds

Wordpress theme by Fahd Murtaza

the links to respective themed wordpress blogs are

Six Seconds Press Room and their 6seconds.org Blog

Posted in General, PHP, Themes, Web Development, Web Development Software, Wordpress

Leave a comment

Search Engine Optimization: Five WordPress Plugins To Make It Easier

December 20th, 2007 by Fahd

Letting the world know about your blog is one of the trickier aspects of starting a new blog or getting people notice one that you’ve been working on. This is so-called search engine optimization or SEO. Google is the most obvious target for these efforts as it dominates the search market and is the default search engine for popular browsers like Firefox. Moreover of you open up the browser and you have nothing particular in mind, the most probable site you type in address bar is google.com yeah I know it ;) . Google rules the SEO tech world and everybosy wants to be in google SERPS (Search engine result pages).  Working around the rules that keep Google and other search engines relevant is arcane at best and at worst will result in your sites being demoted in relevance or delisted entirely. Yep that happens. I have learnt it from my best and worst SEO experiences. There are many theorists and companies that indulge in this sort of speculation and some are more successful than others at nudging search results in the ways they desire them to.

Well guys (not to mention the girls) ,  SEO is what can be called the  ” The most desirable feature/quality (whatever you name it) of a website. To me there are two points about SEO.

  •  More and more incoming links to your blog/site.
  • neat clean directory like URLs for your pages.
  • No redirections.
  • Table less structure to ensure search engines see the text version of your site easily and dont get confused with the text formating on your sit. ( Yeah its important!)
  • Quality /niche oriented / keyword specific content on a page.

(more…)

Posted in Articles, Blogging Engines, General, Open Source, Plugins, SEO, Wordpress

2 Comments

Multi Column Author List WordPress Plugin

June 28th, 2007 by Fahd

Hi everyone! I thought its a better idea to release my new wordpress plugin called “Multi Column Author List”. Give it a download and try it on your wordpress customised blogs. I hope it would be useful for many of you! (more…)

Posted in Blogging Engines, Open Source, PHP, Plugins, Web Development, Wordpress

2 Comments

  • 1
  • 2
  • »
  • Categories


Want to Hire Me?


Fahd Murtaza is the guy behind fahdmurtaza.com: your source for getting your web development projects done. Fahd sepcialises in Open Source Web Development and his favorite is WordPress. This site is a platform to his web development portfolio and blog all on a newly designed responsive website—try viewing it on your mobile.

If after viewing Fahd's portfolio, you think he might be just the guy to hire for your web / application development; check out the web development pricing page, then find out how to hire Fahd with a web development project idea and a brief of requirements.

 


Fahd Murtaza has put together a number of Web Development Articles that will help you see what he does, how he does it. You will also be able to see the level of work, and passion, that Fahad puts into each and every job. Understanding a little about the process can make the idea of investing good money much more palatable. People have always appreciated my Agile techniques. Its time you

Fahd Murtaza, Web Developer, Programmer, Wordpress Expert
U
This is portfolio & blog of senior web developer Fahd Murtaza, who has 9 years experience in: website development, WordPress, drupal, CMS and CRM application development with passion of making web better; one site at a time.


@
Mobile +968 93 678 199
email info@fahdmurtaza.com
Google Talk: fahdim@gmail.com
Skype fahd.murtaza
Location Muscat, Oman.


_
Developed using my beloved, love of my life, WordPress, built on the responsive, grid based, mobile optimised, Foundation Framework, and a modified Foundation theme. More Info →


Follow Fahd: Twitter / Google+ / Instagram / Facebook / Dribbble / Tumblr / Posterous /
Copyright © 2006-2012 Fahd Murtaza

    • WordPress.org
    • Documentation
    • Support Forums
    • Feedback