Permalinks not working with Vagrant

I solved the problem myself. In the default apache configuration, under /etc/apache2/sites-enabled, where mine is called 15-default.conf This was declared under the document root: <Directory “/var/www”> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> I had to change AllowOverride None to AllowOverride All. Thus you’ll get the following: <Directory “/var/www”> Options … Read more

How to change permalink on post click on post listing page

you need to using jquery function functionality <script> var current_main = window.location.pathname; var current= document.URL; //var lastElement = current.substr(current.lastIndexOf(“https://wordpress.stackexchange.com/”) + 1); var main_url = currentq+”?”+thechosenone+”=”+thechosenone; var main = history.pushState(current,””, main_url ); </script> by using this you can able to append the url’s with specified get methods. I hope this will help you

Change in permalink structure made javascript cookie not work correctly

From comment: There is not enough information to answer your question. All your code is javascript, not PHP. Additionally, there is no function named “setCookie” or “getCookie” in javascript, and you don’t state what libraries you are using. The answer is most likely that your setCookie function is using the current page path (cookies have … Read more

Add custom post type name in term link?

Yes it is possible. For first it should be created new rewrite_rules compatible with WPML. This version add taxonomy slug to URL. (post_type/taxonomy/term) /** * Custom post type specific rewrite rules * @return wp_rewrite Rewrite rules handled by WordPress */ function cpt_rewrite_rules($wp_rewrite) { $rules = cpt_generate_archives(‘your_post_type_name’, $wp_rewrite); $wp_rewrite->rules = $rules + $wp_rewrite->rules; return $wp_rewrite; } … Read more

Removing rel=”nofollow” from links posted in Post Content

These links are generated by alx_social_links() function. So in your theme’s functions.php file, search for alx_social_links() function and this link specifically. echo ‘<li><a rel=”nofollow” class=”social-tooltip” ‘.$title.’ ‘.$link.’ ‘.$target.’><i ‘.$icon.’ ‘.$color.’></i></a></li>’; and remove rel=”nofollow” from it. So this will be the new link. echo ‘<li><a class=”social-tooltip” ‘.$title.’ ‘.$link.’ ‘.$target.’><i ‘.$icon.’ ‘.$color.’></i></a></li>’; It will remove nofollow tag … Read more