[How to] Display Most Viewed Posts First on Search Results
WPAssist / How To - April 8, 2020Wordpress by default shows latest posts first on archive and search pages. Here I will show you how to display search results using post view counts.
Wordpress by default shows latest posts first on archive and search pages. Here I will show you how to display search results using post view counts.
WordPress allows you to embed videos so easily using oEmbed. You can easily add videos to your post just pasting their URL to your post. WordPress handles all the object and embed HTML for you. But this code is missing wmode parameter which is necessary for […]
Sometimes you may need to hide certain tags and categories from your widgets. In this post, I will explain you how to hide unwanted terms using wordpress filters. First open your functions.php file in your theme folder. This is the main script file where we […]
For a better seo, and a better user experience, you can easily add a “Back to parent” link on your pages. In this post i will show you how to add it to your page templates.
To display your latest tweet on your site just add the following function in your functions.php file.
I had a problem with my blog recently, that some plugin was disabling comments for older posts. Editing all posts one-by-one and enabling comments back is a pain I know. So, I wrote a simple function to run an SQL query to enable comments for […]
Altough shortcodes are made to be used in post content, you can sometimes need it’s functionality in your wordpress theme designs. Here i will show you how to easily use any shortcode in your page templates.
I recently updated the Facebook Meta Tags plugin to use site logo if no thumbnail exists. To enable this feature you will need a simple edit in your functions file. Here is how to do this.
To add a javascript file to your theme it is easy to use header.php in your theme folder. However, if there are plugins using the same script libraries (like jquery, scriptaculous ) it may cause errors. In this post, I will show you how to […]
Embedding videos from video sites to your posts is a very simple task in WordPress. You can easily embed videos just pasting URL of the video to your posts. It automatically displays the video depending on your media settings. What if you wanted a different […]