How to add Pagination Functionality to Shortcodes Ultimate Plugin ?

How to add Pagination Functionality to Shortcodes Ultimate Plugin ?

Recently, while i was working for one of my client using Shortcodes Ultimate plugin, i noticed that this plugin is missing a pagination feature for the posts.

The blog section of the website was just displaying the posts using the below shortcode

[su_posts template="templates/default.php" posts_per_page="6" tax_operator="0" order="desc"]

As it was clearly written on the Shortcodes Ultimate Documentation that pagination is not supported, so i decided to tweak the plugin so that i can get the pagination functionality.

Shortcodes Ultimate Documentation Official showing that PAGINATION is not supported

Shortcodes Ultimate Documentation Official showing that PAGINATION is not supported

So if you need to add pagination using SHORTCODES ULTIMATE plugin, you have to follow the below steps:

    1. Open File Manager or use FTP client and navigate to “wp-content/plugins/shortcodes-ultimate/inc/core”.
    1. Open shortcodes.php and then download the modified file and replace shortcodes.php with it.
    2. Download the navigation code and paste it in your theme functions.php.
    3. Create a folder called ‘templates‘ in your activated theme, preferably in your child theme and upload this file in that.
    4. Now use the shortcode
      [su_posts template="templates/default.php" posts_per_page="6" tax_operator="0" order="desc"]

 

If you are still facing issues, you can contact me here ,i will be happy to help you.

Do not forget to leave your comments.

Cheers

Problem Solved: upgrade.php?_wp_http_referer=%2Fwp-admin%2F

Problem Solved: upgrade.php?_wp_http_referer=%2Fwp-admin%2F

This is a very common issue which happens when WordPress was not successfully updated. If this happens, then the admin is not able to log into wordpress dashboard as it redirects to this url Problem Solved: upgrade.php?_wp_http_referer=%2Fwp-admin%2F .

Below are simple steps to fix this issue in 2 minutes.

  1. Open File manager through hosting account or using FTP.
  2. Go to the wordpress installation directory and under wp-content folder, rename plugins folder to plugins123.
  3. Then go to your website url and write /wp-admin after the url.

You will see the dialog as below:

Click on UPDATE WordPress Database and the problem will be solved.

Cheers and comment for any issues.

 

 

Modifying Jetpack Social Media Icons LinkedIn Url Issue

Modifying Jetpack Social Media Icons LinkedIn Url Issue

Recently, while i was working for one of my clients website, there was an issue which i saw in the Jetpack Advance Widget called Social Media Icons.

The issue was that jetpack developers has hardcoded www.linkedin.com/in in the code and due to this if any company url doesn’t have /in in their linkedin profile, it was resulting in wrong links. Like for example my clients linkedin official link was https://www.linkedin.com/company/vane-airport/ but when i was entering username, due to hardcoded code it was coming out as https://www.linkedin.com/in/company/vane-airport/ and was a big issue.

So, in order to fix this, open jetpack using any file editor and then look into directory widgets which is located at

\jetpack\modules\widgets

and under widgets open the file called social-media-icons.php and on line 70 remove /in and save the file.

        $this->services = array(
'facebook'   => array( 'Facebook', 'https://www.facebook.com/%s/' ),
'twitter'    => array( 'Twitter', 'https://twitter.com/%s/' ),
'instagram'  => array( 'Instagram', 'https://instagram.com/%s/' ),
'pinterest'  => array( 'Pinterest', 'https://www.pinterest.com/%s/' ),
'linkedin'   => array( 'LinkedIn', 'https://www.linkedin.com/in/%s/' ),
'github'     => array( 'GitHub', 'https://github.com/%s/' ),
'youtube'    => array( 'YouTube', 'https://www.youtube.com/%s/' ),
'vimeo'      => array( 'Vimeo', 'https://vimeo.com/%s/' ),
'googleplus' => array( 'Google+', 'https://plus.google.com/u/0/%s/' ),
'flickr'     => array( 'Flickr', 'https://www.flickr.com/photos/%s/' ),
'wordpress'  => array( 'WordPress.org', 'https://profiles.wordpress.org/%s/' ),
'twitch'     => array( 'Twitch', 'https://www.twitch.tv/%s/' ),
'tumblr'     => array( 'Tumblr', 'https://%s.tumblr.com' ),
); 

This will fix the issue.

Cheers