$_GET parametters not working in an specific template

WordPress is removing all unknown (not registered) $_GET parameters while processing the request (same is true for $_POST). You can either register the custom variable, or just go the canonical PHP way by using filter_input(). This will access the original, unchanged GET parameters. If you are using filter_input(), you have to hook into pre_get_posts to … Read more

WordPress and PHP Version Upgrade issue [closed]

The version of PHP used in the cli and your web server can vary depending upon your hosting and/or Apache configuration. Obviously, you are checking the command line interface version. You can use your cPanel to determine what versions of PHP Apache is using, you can install a PHPinfo type plug that shows the standard … Read more

So my theme doesn’t have a category.php file

First, if you are going to add to the theme, learn about Child Themes https://codex.wordpress.org/Child_Themes . Then, create your own Category page – use a copy of one of the templates in your theme (placed in your Child Theme) and adjust the query to do a category-type query. By creating a Child Theme, you ensure … Read more

How to create a page that shows the last 10 posts?

By default WordPress displays your content in a blog format on the homepage. Using Default Static and Blog Page Settings in WordPress. WordPress comes with built-in support for creating a custom home page (static front page), and a separate page for blog posts. To use this method, you need to create two new WordPress pages. … Read more

WordPress Baskerville 2 translation

It’s quite well explained here: https://developer.wordpress.org/themes/functionality/internationalization/ Basically ensure that all plain text uses the get_text functions with a text domain for your theme: https://developer.wordpress.org/themes/functionality/internationalization/#basic-functions Add code to ‘Load’ any translations https://developer.wordpress.org/themes/functionality/internationalization/#loading-translations. Once you have done that, IF translations exist they will be used. THEN to get the translations. This is also useful https://codex.wordpress.org/I18n_for_WordPress_Developers There are … Read more

Moving FB comments at the end of page

From the plugin’s user manual. Curent_url – Type the page URL from where you need to show Facebook comments So you will have to change the current URL which is (http://developers.facebook.com/docs/plugins/comments/) to your real current URL. global $wp; $current_url = home_url( add_query_arg( array(), $wp->request ) ); echo do_shortcode(‘[wpdevart_facebook_comment facebook_app_id=”12345678910111213″ curent_url=”‘.$current_url.’ ” order_type=”social” title_text=”Facebook Comment” title_text_color=”#000000″ … Read more