Your dev server does not load for me?
But I also wanted to check – what is your permalink structure set to?
Yeah, its currently offline atm. I’ve also tried it on a live site: http://poboxdesigns.com.au/test
This site is also bringing up a 404.
Permalink structure is: /%category%/%postname%
thanks for posting that link – it def seems like a rewrite rules issue. Can I ask you to install this plugin – https://wordpress.org/plugins/rewrite-flush-button/ – and flush the rewrite rules to see if that gets it going.
It might be that you need to do a hard flush so that your .htacess file will change
That plugin description says not to bother as it does the same as saving the permalinks which I’ve already tried. Do you still want me to install it?
I am having the same issue: https://opendoorsmorocco.com/tour-gallery/?preview=true&preview_id=2856&preview_nonce=29e0189116
I am much less savvy with the rewrite rules etc. So I’ll need a simpler response :-).
guys, I am working on a new setting which allows you to choose your gallery link format. Either:
/page-with-album/gallery/some-gallery
or
/page-with-album?gallery=some-gallery
The second format should work without the need for rewrite rules etc
I will post a link to a dev version of the plugin which you can test out for me please?
Please try this dev version: https://github.com/fooplugins/foogallery/archive/develop.zip
I have added a new setting for the album which allows you to choose the URL link format for the galleries in an album. If you are gettings 404’s then change to use the querystring format and that should solve your problem.
Please let me know if it works for you. If so then I will push this version to the WP.org repo
Thanks, thats now working here https://schoolprideaccessories.com.au/album-test without pretty urls. Any idea why the pretty urls aren’t working?
It could be a number of things, but these are the probably the cause
* your host has some type of caching or the htacess file is not writable
* you are using a caching plugin that needs to be flushed
hmm, do you have an example of what the rewrite rules in the htaccess should be so I can compare with mine?
You can test what rewrite rules are currently setup using this nifty plugin : http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/
I would look there first before you start looking at your htaccess.
Also, looking at your previous comment, I think your permalink structure is conflicting with the gallery album rewrite rule:
/%category%/%postname%
could be mistaken for:
/album-page/gallery
ok, I’ve finally worked out whats going on. The gallery page existed all along but the link from the album was wrong. The reason is my permalink structure. I like to have my permalinks without the trailing slash.
To solve this I’ve made this change:
if ( 'default' === $format ) {
$url = untrailingslashit($_SERVER['REQUEST_URI']) .'/'. $slug . '/' . $gallery->slug;
} else {
$url = add_query_arg( $slug, $gallery->slug );
}
This works for permalinks with and without the slash as well as pages with parents.