I am figuring out how to display a custom taxonomy on the WooCommerce shop loop. I found this answer, which has pointed me in the right direction. I have modified the code from that answer, to the following: The part I am stuck on is this line: I changed was was Vendor and Vendors (the name of the taxonomy) t…
Guzzle api call not working on droplet but working locally
Hi I’m trying to get a token from an api but no matter what I try on the droplet I get an invalid client every single time, the code is the same locally and on the droplet, currently working on local but not on the droplet. This is the code The url for the post isn’t a real one, I
How to enable update cart button in woocommerce cart.php?
Hi I’ve been trying to get my “update cart” button to work on the cart page made by woocommerce. It is on my own theme and I have added the cart.php template to it. In the woocommerce template it had quantity but it didn’t have an easy to use add more or less buttons. So I edited the g…
PHP, how do I pass variables between methods?
I’m trying to pass a variable from one method to another. I’m fetching dates from an events table in order to build a dynamic query in another method. this returns my sumCase array without problems, I’m now trying to access this sumCase array in another method in order to build the query: wh…
Laravel: using database query in layouts page in Laravel
I have main layout page ,I want to use some database data in the navbar I did this to get data: where(‘user_id’,…
Need script to not run if user is logged in
Goal: To hide specific categories from showing in the post meta area The below code achieves that (which is in the theme’s functions.php file): function exclude_these_categories($thelist, $…
Navigation being inturrupted by anchor tag in page
I’m have an issue with my sub-menu navigation an I’m hoping someone can help me. The nav seems to be working properly on all pages except for ‘Programs’, where it looks transparent and when I hover …
Using PHP to reload a page with new div content
I have a page that has main content and a menu bar, when a user logs in a $_SESSION variable is set via data pulled from a database to determine which main content and which menu bar the user sees. …
Removing an associated key/value pair from array (nested)
I have two function to add remove parameters to the query string. The “add_query_params” (thanks to this forum) is working nicely and I can now add multiple tags to the query string of the same type. For example As you can see, I can add multiple of the same parameters, I am also querying these ni…
with two different options not from database, but custom text php mysql, html
I have my database in phpmyadmin, and I have a table ’employees’. One of the fields is ‘pay_item’, and this particular field is type ‘varchar(100)’. I want to have a dropdown in my php website, and I want it to have two different options: ‘Hourly’ and ‘Sal…