Skip to content

Print WordPress menu in a tag

I have some WordPress nav menus and I want to print each nav menu under an <a> tag. I tried the following code: Tried to use <a> as the container, but that’s printing: I want to remove that entire <ul><li> structure. My menu should be printed as: I’ve also tried the following, wh…

PHP Combine arrays with the same ID

I have $row which outputs the below. Array 0 – 4 do not change per user but the last items in each array need to be added together. I need to combine them so they are like this: My code so far is: But this is not doing what I expect. Not really sure where to go with this so

Zammad API: Create ticket with tag

For those who don’t want to read the whole question: I’m looking for the index in the API-Request (Zammad) to set a tag while creating a ticket. Details: I’m using PHP to make an API-Request to my server where Zammad is installed. The following shows the data i sent via curl: After convertin…

php echo each unique sql order by

From a db table I query all the results and order those by place. I echo this query into checkboxes. So every place has its own checkbox. Above all the checkboxes there is a title like select one or multiple places but now I would also like to add a title to each set of places. I have the following

Can’t connect to localhost mysql

I am trying to get my app working with docker but I am having trouble getting my database to display. It seems my laravel application itself can access it but I need to access it myself in order to …