HeyBlondie
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PageNavi] URL rewriting on custom post typeOH… my god!!
Thank you, thank you, thank you!!!
I have been trying to fix this issue on a website I’m working on for over a month and I have tried just about everything. This piece of code, added to the ‘functions.php’ file, has fixed it and finally got pagination working with my Custom Post Type.
Absolutely awesome and thanks for posting this
Forum: Everything else WordPress
In reply to: Edit my postsThat seems pretty harsh. I don’t think removing references to 4wdaus would have any impact on the post, as all other code will be in tact.
I feel I have made a mistake by posting the URL in a public forum such as this and a show of goodwill is not asking much
Forum: Hacks
In reply to: Pagination issues in custom single.php pageI appreciate what you say and yes, the situation is what it is, and I need to find what my best solution is.
thanks for the other suggestions too. I will have a look.
Forum: Hacks
In reply to: Pagination issues in custom single.php pageHmmm, I don’t really understand why this should be so complicated, but so be it. There does seem to be plenty of other people that have had this issue, but that was before an upgrade in WP that should have rectified part of the problem.
Surely this would merely indicate that 1) my code is, in principle, functional and working fine and 2) the error lies in the way the URL/permalink is referenced, or used. My first thought is that there should be something I can do to change the permalink/url structure to enable it to work?
I understand that your suggestion would bypass this, which is all well and good and thorough, but I am under time pressure (and don’t have so much time to spend on coding at the moment) and need to find a solution asap.
This has become unnecessarily frustrating for me.
When I get a chance though, I will again review the code samples you have sent, and see if I can work through it to a working example. Will of course post here if I find a solution.
thanks again
Forum: Hacks
In reply to: Pagination issues in custom single.php pageHi bcworks. ….I actually have some progress to report.
While reading through WP codex for pagination it suggested to reset permalinks to default, so I set it to plain (from ‘Post name’) and the pagination actually does work!! So the issue lays somehow with my URL/permalink structure.
I’m not sure where to start, but at least it gives me a better idea of where I should be looking. Any thoughts you have in this area, if you have time, would again be greatly appreciated.
Forum: Hacks
In reply to: Pagination issues in custom single.php pageOk cool. Well it’s good to know that I’ve been in the right place at least.
From what you say, and from what I’ve been experiencing, it does seem like the best option is for me to write my own pagination code. And while I don’t particularly want to have to do it, I agree that it will certainly give me a better understanding of how things work …not to mention, actually being able to get it to work, full stop.
I’m going to have to sort out how I get this achieved. Thanks again for all your input.
Forum: Hacks
In reply to: Pagination issues in custom single.php pageI’m thinking you may have misunderstood a little? I can understand that it could be a little confusing to follow though …
I haven’t so much edited ‘single.php’, but have edited a copy of it (in my child directory) and called it ‘single-major_trip.php’ …as per most instructions I have read on the topic. This is where the pagination is, and this is the bit that isn’t working.
I am using a plugin called ‘What The File’ which shows which files/pages were loaded to get to the page that is currently being viewed. (pretty handy actually).
I do like your idea of creating custom pagination, but I’m going to have to study this a bit and work through it.
Thanks for your suggestions and examples of code.
Forum: Hacks
In reply to: Pagination issues in custom single.php pageThanks for your time and input bcworks.
I’m curious to have a look at your pagination example for a custom query and will see if it’s something I can get to work.
As an aside, I posted also on StackExchange and one person there suggested that a problem could be that my code is in ‘single-CPT.php’. Does it sound any alarm bells with you?
If I have any luck with your code, I’ll post again, but it could be a little while.
Forum: Hacks
In reply to: Pagination issues in custom single.php pageI have actually tried this before but it made no difference. I did however try again and it has made no difference.
Despite that, I understand the $wp_query to be global by default, as per details on this WP codex page:
https://codex.www.ads-software.com/Global_VariablesI’m pretty sure that there are details I’m not posting that could be relevant, but I’m not sure of what that could be of course. :/
Forum: Fixing WordPress
In reply to: Yet another; pagination not working with custom post type…I have noticed the links I added for code examples in pastebin are private, in which case, people can’t view them! oops. :/
I will label this is resolved and then post new question.
Apologies
Forum: Fixing WordPress
In reply to: Yet another; pagination not working with custom post type…in addition to above (sorry, probably some useful details)
– when mouse pointer hovers of ‘Older Posts’, url is shown with ‘/page/2/’ added, but when clicked, the first initial page is shown
– if tested, the variable of ‘max_num_pages’ will return ‘7’, so there are numerous pages to display
– if I enter a fixed category for the post grid (as opposed to the ACF variable) it makes no difference, except for displaying a grid of posts of the same category on each page
– if I enter a number for ‘paged’ in code. eg.
$args['paged'] = 3
the third page will actually be displayed— with the previously mentioned test, the link for ‘Newer Posts’ is still not displayed. Only ‘Older Posts’ is displayed.
Forum: Plugins
In reply to: [W3 Total Cache] 500 Internal Server ErrorI have had the same problem. Installed the plugin on new site for client and Internal Server error. I tried a couple of different settings as well as removing these 3 lines from .htaccess (which I found referenced in another post):
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>…but nothing made any difference.
A solution or suggestions would be great.
Forum: Plugins
In reply to: [FG Joomla to WordPress] Less data imported second time plugin is used….. after playing around with the plugin and various settings, (to get ready for opening a ticket for support), I actually got it working. Really not sure how.
The problem is that I have now noticed that 2 of my pages have been deleted and they were not previously imported with the plugin!! Have no idea of course how this has happened, but I need to rectify this ASAP.
Thank you
Forum: Plugins
In reply to: [FG Joomla to WordPress] Less data imported second time plugin is usedIt appears that I didn’t enable the log file to be created! I assumed that, because there is log details being displayed during import, that the same information was saved in a log file. Not the case.
The best I have is a couple of screenshots.
I’ll see about opening a ticket and send them to you. Thanks
Forum: Plugins
In reply to: [FG Joomla to WordPress] Less data imported second time plugin is usedyes, I did that, but there is still hardly anything imported. I can send you the log file if that would help?