I am a web & mobile app developer based in Lahore. I have been developing creative, interactive, usable & successful web apps, web portals, php and Flash action scripting, REST apis, WordPress plugins & themes. In recent years, I have worked on Ionic, Angular and TypeScript for hybrid mobile apps, Flutter & Dart, React & React Native, and Swift native iOS mobile app development.
To get a permalink and Post Title outside of the standard WordPress post loop, you have to use the get_permalink() function. This function takes a post ID as argument, and returns the permalink: ID); ?>” >Read the article If you want to get the Post Title and excerpt too, you can use WordPress get_post()…
As I write this post on 12 Oct, The FBML apps I manage are all working fine even without SSL certificate. Facebook’s Secure Page URL requirement by Oct 1, 2011 mentioned on this Facebook Platform road map page had created some anxious moments for many developers earlier. On the the above road map for developers…
While working on legacy Facebook applications recently migrating them to the latest Graph API, I fixed the data types of Facebook ID columns in several apps. Some had used the varchar data type and others had simple ‘Text’ type. Since Facebook assigns the IDs to users, and we are just storing them in our apps,…
Usually, in a WordPress blog or website, we do not need to list posts or pages by alphabetical order but with more and more people using the Custom Post Types and adding topics and sections in their website which do need alphabetical listing such as a if you have created Custom Post Type for Movies,…
The jQuery Cycle Plugin is a slideshow plugin that supports many different types of transition effects. jQuery-Cycle plugin can be used to create a simple text slider to show testimonials on web page. There are many options that you can use to control how and when your slide transitions occur. You can also add the…
This error occurs due to the table jtablesession crashing, and solution is quite simple. Just login to yuor phpMyAdmin panel and run the following mysql query to recreate the jtablesession table. BTW, this is fairly common error and regularly faced by the Joomla websites. Just import the following table using any MySQL client: DROP table…
While working on a WordPress website, I created a new custom template for Custom Post Type records but faced very weird problem. Since I was using More Types Plugin, Post type template select drop down was empty. It displayed neither the default templates nor my custom created template for that Post Type. Initially I thought…
If you are getting following error trying to get image size on your own server, you need to provide local directory path rather than website url. PHP Warning: function.getimagesize: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden Solution Get the path of your script and then use this path in the getimagesize function…
jQuery Mobile Framework has a feature to automatically create and append “back” buttons to any application header, although it is disabled by default. The jQuery Mobile framework automatically adds a “back” button on a header when the page plugin’s addBackBtn option is true. You can also enable this feature via markup by setting page div…
Sometime back I developed a mobile app, where image was to be submitted with the entry form in some competition. It worked on all major phones except for Apple’s wonderful devices such as iPod, iPhone and iPad. The reason for this was Mobile Safari browser that won’t let you upload images from your iPad/iPhone and…
Facebook has added the app’s permissions to the user object, which can easily be accessed using Facebook Graph API and any specific permission is missing, you can request for it by redirecting user to the Facebook: $app_id =’App ID here’; $app_secret =’App Secret here’; $app_url =’App URL here’; // Create our Application instance. $facebook =…
Using WordPress, if you create Custom Post Type and while adding records you also post them under standard Posts Categories or Sub categories, they won’t appear under the listing of those categories standard posts. To resolve this and include Custom Post Type records in the categories listing, add the following code in your theme functions.php…
To get the Facebook Third Party ID for your app Facebook user, try the following code using Graph API: $fbid = $facebook->api(‘/me?fields=third_party_id&access_token=’.$access_token); echo “THIRD PARTY ID: “.$fbid[‘third_party_id’]; What is Third Party ID? Facebook expressly prohibit Platform developers from passing any data from Facebook to data brokers. But sometimes there are practical reasons that developers will…
WordPress 3.x comes with the ability to create Custom Post Types and which makes it very simple for developers to extend WordPress and use it as a proper CMS for any business need. Apart from the default Posts and Pages, you can now create custom types to better manage content, and make it easier for…
Mingle Forum is very useful WordPress Plugin that allows you to quickly put a Forum on your WordPress site/blog. Email notifications in Mingle Forums is one area which needs improvement. My client wanted a feature where every member would get email notifications for any new topic started by any user. Since it’s not available in…