refuelcreativeadam
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods APIHi @keraweb,
I’ve reported this issue in GitHub like you requested https://github.com/pods-framework/pods/issues/5952
Do you have any idea what kind of timeframe I would be looking at before this can be resolved? We need to know if we should postpone the app launch until this is resolved or just launch without that functionality.
Thanks
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods APIHi @keraweb
Clearing the cache didn’t help. What info do you need to reproduce the installation? Alternatively I have a staging site set up that I could give you access to
Thanks
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pagination on PODS Query ResultsHi @keraweb thanks for your help, I’ve got it working now.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pagination on PODS Query ResultsHi @keraweb
I’ve tried adding that
echo $services->pagination();
snippet but it’s not working.
I also triedecho $services->pagination( array( 'type' => 'paginate' ) );
but that’s also not working.It’s not just, not working, it’s not doing anything at all.
Any ideas why?
I tried adding it everywhere I could that was outside the
while
loop and after the$services
variableForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pagination on PODS Query ResultsHi @keraweb
Where do I put that snippet though? Do I need to wrap my current echo statement in the pagination()? or does it just go down the bottom?
Hi @keraweb,
Thanks for the suggestion, I was able to find a different way to achieve what I was after.
hi @keraweb,
I’ve managed to get it all working. In addition to that comma you pointed out, the line
$age = wpdb::esc_like( pods_v_sanitized( $splitQuery[1] ) );was also causing problems. I got the sanitization code from Pods documentation but it doesn’t work. I’ve removed it entirely and now it works.
Thanks for your help.
hi @keraweb,
I’ve moved onto alternative means to achieve this same thing and was hoping you could help me.
I’m trying to run the following php function:
function parseGFtoPODS( $atts ) { $URLquery = $_SERVER['QUERY_STRING']; //split URLquery into array on "=" $splitQuery = explode("=", $URLquery); //echo $splitQuery[1] . "<br>"; $age = wpdb::esc_like( pods_v_sanitized( $splitQuery[1] ) ); // set up find parameters, where meta field title matches $age $params = array( 'where' => 'age.meta_value LIKE "%' . $age . '%"' 'limit' => -1 // Returns all rows ); // Create and find in one shot $services = pods( 'service', $params ); if ( $services->total() > 0 ) { while ( $services->fetch() ) { echo $services->display( 'name' ) . "<br>"; } // end of services loop } else { echo "Sorry, there are no services match your parameters."; } // end of found services } add_shortcode( 'Home_Search_Results', 'parseGFtoPODS');
This all works fine except for the where parameter, which causes a critical error on the site.
I followed this guide for that part of the function: https://pods.io/docs/code/pods/find/
So I’m not sure what’s going wrong. Any ideas?
A few other clarifying points in the code:
– the original value of $URLquery is “age=13-17”
– $URLquery[1] = “13-17”
– Without the where parameter it returns all servicesTo check it out yourself, it’s this page: https://www.ntcommunity.org.au/servies-search-test/?ages=13-17
username and password are both Test
- This reply was modified 4 years, 1 month ago by refuelcreativeadam.
- This reply was modified 4 years, 1 month ago by refuelcreativeadam.
Hi @keraweb, the age ranges are being passed from the form as a string, not as an actual range.
For example the user would select the checkbox “13-17” in the gravity form and then that string is what’s being passed through.
Sorry for the misunderstanding.
- This reply was modified 4 years, 1 month ago by refuelcreativeadam.
Hi @keraweb, thanks for the fast reply.
So with this, how would I get the age range? it’s being passed in a URL query string, but if I just use:
[pods name=”service” field=”service-name” where=”ages.meta_value = {@site-url}”]
That will try and compare it to the entire url correct?
How would I go about just getting part of the url?- This reply was modified 4 years, 1 month ago by refuelcreativeadam.
awesome, thanks @keraweb that worked ??
Hi @keraweb,
Would you be able to help me with the [each] statement? I’m not sure what I’m doing wrong
I copied the example in the link you provided and swapped out for my relationship field name but I don’t get any output, it just prints the code:
<ul class="services-list"> [each services] <li><a href="{@permalink,esc_url}">{@post_title}</a></li> [/each] </ul>
Thanks
- This reply was modified 4 years, 2 months ago by refuelcreativeadam.
Hi @keraweb
I’m currently using this shortcode: [pods]{@services}[/pods]
By default gives me “Service A, Service B, and Service C” then I’ve used a little bit of javascript to remove the commas and separate it into 3 divs so that I can style it with css.
Forum: Plugins
In reply to: [WooCommerce] Checkout Timing OutHi @drwpcom sorry this has been resolved and I forgot to mark it as such. Thanks
Forum: Plugins
In reply to: [WooCommerce] Checkout Timing OutHi,
Turns out this is a jquery issue. No idea what’s caused it but switching to the latest Git Build versions of both jQuery and jQuery Migrate, and then purging the cache multiple times got the checkout to load.
New problem though, is that the stripe credit card checkout is completely broken. The input fields aren’t even being rendered on the page.
We’re using it for event tickets. One such event is this: https://ntcoss.org.au/event/launch-of-the-value-of-the-not-for-profit-sector-report-2020-2/#tribe-tickets
- This reply was modified 4 years, 3 months ago by refuelcreativeadam.
- This reply was modified 4 years, 3 months ago by refuelcreativeadam.