My name is ***** ***** I will be assisting. Welcome to just answer. Please give me a moment to test you code and give you a feedback.
Hi, I am still on it but in order not to delay you further I'll optout for now to allow other experts to have input. I'll post my response once done
Hi, for now what I think might contribute to the issue is the way the WP_Query() is reset. Lets try the standard wp_reset_postdata() explained here (https://codex.wordpress.org/Function_Reference/wp_reset_postdata) and see if it does not change any thing.
Ok great. We will solve it I just had to refresh my WP knowledge hence the long wait. Thanks for your patience. Please paste your latest version with wp_reset_postdata().
Ok, you might also look at this video as well. https://www.youtube.com/watch?v=xEA2zviCakw
The author has the example projects for each lesson here https://github.com/Alecaddd/WordPress101
Ok no prob. I have your code in WP I just need to add some dummy blog posts and test. I'll however only be able get back to it in about 9 hours.
As for payments, it only goes to an expert after you will have rated and have accepted an answer that they will have provided.
As it stands I think even if its taken you are still eligible for a refund.
Thanks. I am back on it and will update you on the progress.
Please see attached
The system is rejecting the file please find it here https://dl.dropboxusercontent.com/u/21712482/info
Ok great thanks for for the info. Let me trouble shoot it further.
It seems your code does not have a problem. I did not change even a single line but its working for all permalinks. The only difference is, my parent theme is the twentysixteen theme. This leaves us with one prime suspect, the web server. The 301 error somehow substantiates this. What webserver are you using? If it is Apache I can share my complete site configuration.
I think a parent theme would not really be a challenge I'm not sure though but you can try it
This is all I have in my styles sheet:
/* Theme Name: Twenty Sixteen Child Theme URI: http://example.com/twenty-fifteen-child/ Description: Twenty Sixteen Child Theme Author: Me Author URI: http://example.com Template: twentysixteen Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-sixteen-child*/
The bold line is all what is required to specify a parent theme and a function in functions.php
Please see https://codex.wordpress.org/Child_Themes
Ok I do understand completely it was just in case you would want to test with a different theme.
I am also positive once the server is sorted, all will be fine.
You can get it here https://dl.dropboxusercontent.com/u/21712482/000-default.conf
Tell them in an environment where it works we have this configuration on Apache and the module 'rewrite' is enabled.
In essence, if you have .htaccess in the root directory of your site, there is no need for the module to be enabled. But if the .htaccess gets overwritten every time you update the permalinks, enabling the module and configuring the web server does take care of it.
Please share the contents of your .htaccess so I can have a look.
I think this should be fine as long as .htaccess does not get overwritten. If there is a page on the same site that allows it then it means the server should be fine.
I have just viewed the site, pagination seems to work on miscellaneous blogs and not on travel blogs where "Older posts" does not take you anywhere. I believe that is what you mean by it working on one page and not on another. Please do correct me if its not the case.
If so, do "Misc Blog" files and "Travel Blog" files reside in different directories or not? If they are, how does the directory structure that involves them look?
I also do feel we have exhausted what I thought might be possible causes given that I found it to be working on my environment with configs sent earlier. I'll opt out to give other experts a chance.
I will go through this and get back to you !!