steweill
Forum Replies Created
-
This is the console error:
Uncaught SyntaxError: Unexpected token ‘<‘, “
)
at ce. (jquery-migrate.min.js?ver=3.4.1:2:3161)
at e. as parseJSON
at Object.success (cbxwpbookmark-public.js?ver=1.9.11:289:34)
at c (jquery.min.js?ver=3.7.1:2:25304)
at Object.fireWith as resolveWith
at l (jquery.min.js?ver=3.7.1:2:77782)
at XMLHttpRequest. (jquery.min.js?ver=3.7.1:2:80265)Any update on this issue? It has been a week.
Forum: Plugins
In reply to: [WPvivid — Backup, Migration & Staging] theme migrationOn second thought, should I take the new content from the live site (posts, pages, users and media) and move it to the staging site and then push it live once everything is perfect?
I have the exact same problem – after I send the test email it goes to my 404 page.
Forum: Plugins
In reply to: 3-level nav: need to drill back up – help?Hi again esmi,
I’ve used explode() and it appears I’m getting an array of one: all categories are being output. They all get output again if I just echo the array iteration $parentcat[0]. Nothing comes up for $parentcat[1] and so on. If I output $parent_cats variable it doe indeed output “Array”. Do you know how I could break it down further so I can then go ahead and test it for ‘cat_is_ancestor_of’.
if(is_category())
{
$this_category = get_query_var('cat');
$parent_cats = strip_tags( wp_list_categories('title_li=&depth=1&echo=0') );$parent_cats = explode(",", $parent_cats);
foreach ($parent_cats as $parentcat) {
echo "$parentcat";}
}
I’m not a php coder so some basic stuff eludes me – sorry.
Forum: Plugins
In reply to: 3-level nav: need to drill back up – help?Thanks so much esmi –
I’ve been troubleshooting around with this code you left, and I seem to have trouble getting
strip_tags( wp_list_categories('title_li&depth=1&echo=0') );
to return an array, I’m getting a string. How can I get it to return (or convert to) an array? Does echo=0 render it a string? can we create an array with get_terms()?Thanks again.
Forum: Plugins
In reply to: 3-level nav: need to drill back up – help?Actually I have changed things a bit. My new question – altho related – is this:
How do you get the topmost parent category, then it’s child’s children?
Forum: Fixing WordPress
In reply to: Showing subcategories of a parent page under subcategoryThanks t31os_ for that idea above to grab the subcategories and echo them out of the foreach loop.
I was wondering if there’s an easy way to order this array by the date each one was created. I’m not loving the alphabetical (asc or desc) defaults.
Just wondering…
Thanks again!