## MYSQL: only seem to be able add one category instead of array

Question
I want to add posts to category called "New York" (ID 88) and also to category "USA" (ID 89) based on regex, I cannot seem to get it to add to both at once. Managed to get it working just for ...
0
5 hours 0 Answers 3 views

## MYSQL: add posts to an array of categories based on REGEX. only seem to be able add one category instead of array

Question
I want to add posts to category called "New York" (ID 88) and also to category "USA" (ID 89) based on regex, I cannot seem to get it to add to both at once. Managed to get it working just for ...
0
2 days 0 Answers 5 views

Question
Please i want to know if it is posible to use one sql query to insert into multiple columns and rows using array in php $sql = "INSERT INTO MyGuests (firstname, lastname, email) <br> VALUES ('John', ... 0 5 days 0 Answers 13 views ## wordpress output numbers from an array of checkboxes Question I'm not a php expert at all, but I've just started to learn it. I'm using a function on wordpress which creates a xml file after pressing send button on a contact form (with contact form 7). That's my code ... 0 6 days 0 Answers 16 views ## How to use if statement in an array? [closed] Question Firstly sorry for my English. I hope you understand me. I have an array like this:$fields = array( 'author' => '<div class="form-group"><input class="form-control" id="author" name="author" type="text" placeholder="Name '.( $req ? '*' : '' ) .'" value="' . esc_attr($commenter['comment_author'] ...
0
6 days 0 Answers 15 views

## WordPress Settings API Overrides My Previous Value

Question
I have created the following custom menu page to save some data, I've included some repeatable fields inside the form. The problem that I have is that every time I click the submit button it overrides my previous values in ...
0
1 week 0 Answers 21 views

## Display related posts based on matching the category and a tag within a custom taxonomy group

Question
Hi community and thanks in advance. My aim, I simply want to display Pubs/Bars related by the same area tag, automatically, on every post. I found and followed what looked like an excellent solution on Stack Exchange, (How to ...
0
2 weeks 0 Answers 20 views

## Repeatable field within repeatable group of fields

Question
Compounding on Saving metabox repeatable fields ... I've created a metabox with a series of fields that are repeatable. However, within those fields, I'd like to create another field named Choices and make that repeatable within each grouping. I was ...
0
3 weeks 0 Answers 25 views

## How to change category id on get_posts array

Question
I am making a carousel for my AMP page, and I want to re-use the code, so I made it into a template, however, I am having the problem with changing ID on the array for category value, I would ...
0
3 weeks 0 Answers 30 views

## Display one random image from Media Library

Question
I was asking if is possible to get all images from Media Library and display one of them randomly every time I refresh the page. I think it'd be something like make an array of media library images (php) and then ...
0
3 weeks 0 Answers 35 views