fullworks
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: WP 5.6 Parent and Child ThemeCan you post the header of the child style.css out of interest. Obviously there isn’t a general issue with child / parent themes as it would have broken millions of sites, so there is something unique going on in your set up.
Forum: Reviews
In reply to: [Display Eventbrite Events] Awesome plugin with great supportMany thanks for your kind review. I was glad I could help you getting your site looking the way you wanted.
Forum: Fixing WordPress
In reply to: Help with wp cli and cronThe solution was not to run
/usr/local/bin/wp ...
but
/usr/local/bin/php /usr/local/bin/wp ...
simple when you understand that
wp
is just php and can be run byphp wp
Forum: Plugins
In reply to: [Quick Paypal Payments] Payments failing “BAD_INPUT_ERROR”Brilliant.
I have already added code to strip out errant spaces ready for the next release. Thanks for helping pin down this issue.
Forum: Developing with WordPress
In reply to: WP 5.6 Parent and Child ThemeInteresting, I don’t know but I would have never assumed the child-parent structure took into consideration loading of classes.
It seems the sequence is load child theme functions.php then parents theme’s functions.php. That is the way it always have been it seems.
Instinctively I think I would code it such that if the class does not exist to explicity load the class.
But one common suggestion is to load all child functions ‘after_theme_setup’
I searched and found this from 11 years ago requesting child themes after parent https://core.trac.www.ads-software.com/ticket/13084 and that was decided as ‘wont fix’
Forum: Developing with WordPress
In reply to: Custom post type in own root folder?This is what I did
added the /blog/ to permalinks and saved
checked a different CPT it went to /blog/cptname
cut and pasted your CPT registration exactly
tested it went to /blog/case-studies
re saved permalinks
it went to /case-studies
No other code. I’d double check everything (cache? did you save the php with slug? )if I were you as it definitely worked with no other additions
Forum: Plugins
In reply to: [Quick Paypal Payments] Payments failing “BAD_INPUT_ERROR”Just looking at the code, other possible places you may have inadvertently added spaces would be on the Thankyou URL & Cancel URL if you are using those.
Just FYI, unless you specify not to – the emails & logs happen when the form is submitted, and not when payment has completed, that is the purpose of IPN (Instant Payment Notification) processing if you enable that an suppress payments until actually paid.
Forum: Plugins
In reply to: [Quick Paypal Payments] Payments failing “BAD_INPUT_ERROR”Ok I have tested this and it does work fine on my systems.
A bit of research found that people got the same error inconsistently when their email address had a trailing space.
I just tested by adding a space to my email and indeed the error occurs.
I know you said you ‘reset’ and ‘readded’. Can you double check that maybe but cut and paste you introduced a space. i.e. delete and manually re-enter your address.
Forum: Plugins
In reply to: [Quick Paypal Payments] Payments failing “BAD_INPUT_ERROR”Just FYI I’m testing on my sites to see.
I assume you are on the current version, not that any of that code has changed for a good while.
Forum: Developing with WordPress
In reply to: WP 5.6 Parent and Child ThemeSorry was misreading the issue – jumped to conclusion that classes were css classes not PHP classes. I should have noticed as you mentioned inheritance.
Is the child theme explicitly requiring the parent classes or is it just relying on they may be loaded?
Forum: Developing with WordPress
In reply to: Custom post type in own root folder?Sorry – just tested your exact CPT registration code, and it works fine.
I was leading you astray with the filter, it is not required.
What is required is refreshing permalinks after you have made that change to the CPT slug.
Simplest way is to go to settings > permalinks and
save
I think you will be OK then.
Forum: Developing with WordPress
In reply to: Custom post type in own root folder?Ah then your registration is good.
Need to think more
- This reply was modified 4 years, 1 month ago by fullworks. Reason: first answer was wrong
Forum: Developing with WordPress
In reply to: Custom post type in own root folder?just checking my understanding
/blog/%postname%/
that is set as a custom permalink?Forum: Developing with WordPress
In reply to: Custom post type in own root folder?OK the definition looks good. Let me think about this.
Forum: Developing with WordPress
In reply to: WP 5.6 Parent and Child ThemeMy first question if how is the child theme loading the parents styles?
I hope it is using the enqueue method
https://developer.www.ads-software.com/themes/advanced-topics/child-themes/#3-enqueue-stylesheet
( older child themes used different techniques )Assuming is it then I would be very surprised if it is 5.6 causing and issue, sound more like browser cache?