jetfighter
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: PHP: Creating list of unique values using nested foreach loopsResolved.
Forum: Fixing WordPress
In reply to: PHP: Creating list of unique values using nested foreach loopsIt works! Thank you so much! I would have never figured that out on my own. Just needed to switch out that first line in my response above with this:
if ( ! in_array ($category->name, $uniques) ) {
Works beautifully. I don’t understand how it works really, but very thankful.
Guess I need to spend some time wrapping my head around loops some more.Have a good week
Forum: Fixing WordPress
In reply to: PHP: Creating list of unique values using nested foreach loopsThanks for the reply!! Looks like a smart approach. So there were some errors:
Says that the ‘$category->name’ portion of line:
if ( ! in_array ($uniques, $category->name) ) {
as well as the ‘$unique’ portion of line:
if (in_array ($categories [0]->name, $unique)) {
are strings when they should be arrays? So I changed $unique to $uniques in the second line, and that got rid of that error. Now trying to figure out the other error, from that first line.Any ideas?
Forum: Fixing WordPress
In reply to: Passing jquery variable to PHPThanks Pablo. So for the URL portion of ajax, I’d use: https://www.website.com/wp-admin/admin-ajax.php ?
Forum: Fixing WordPress
In reply to: Problems from updating wp_siteurl to HTTPSYes, as i said I did change the link in Settings. But after doing so, the error message came back so I reverted back to http. For some reason, having all pages set to https made the error message come back. Very strange.
Thank you for the plugin link. I will try that although I do not expect it to solve the problem. It seems that something subtle has changed because despite reversing all changes I had made, the error message does not disappear whereas, previously, it did disappear.
Any ideas as to what could have changed? Thank you.