Cant access my wordpress.org locally

As you configure the domain name in local WordPress setup, it will not be able to resolve the content from DNS/Domain. You have 2 ways, Change the setting from backend. i.e. config file and DB. OR As a simple hack, you can create a host entries on your local system to your local web server. … Read more

Add addtional page parameter before loading the page

Set a variable $product_view=isset($_GET[‘product_view’]) ? $_GET[‘product_view’] : ‘grid’; Now, how to keep it like this with pagination URL’s. echo paginate_links(array( ‘base’ => add_query_arg(‘product_view’, $product_view), ‘format’ => ”, ‘prev_text’ => __(‘«’), ‘next_text’ => __(‘»’), ‘total’ => ceil($total / $items_per_page), ‘current’ => $page, ‘add_args’ => array( ‘category’ => ‘fruit’, ‘color’ => ‘red’ ) )); I hope this … Read more

Getting Turkish alphabet characters in the URL field in webbrowser

The function [sanitize_title()][1] generates slugs. This function makes a subsequent call to remove_accents(). This function is found in /wp-includes/formatting.php and includes a map of all character conversions (just FYI). This only occurs in the “save” context of sanitize_title() which is the default. Removing accents is not necessary, but it helps ensure the posts slug only … Read more

Remove “Page” from Category archive

In the backoffice of wordpress you can choose your own permalinks. In Settings > Permalinks, you will be able to change that by your own structure. You will have severals parameters, like %year%, %postname%, %author%, etc. You will have to choose for your example : example.com/blog/category/all/%postname% . The other idea, is maybe to create an … Read more