morpe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] how reset all options?I have not changed the subject physically, I do not have a child-theme.
there are options that I can not recover, type:
the pull-down menu at the beginning opened with the mouse over, now only clik.similar error for me too!
Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A&start-date=2012-11-13&end-date=2012-11-13&metrics=ga%3Avisitors: (400) Invalid value 'ga:'. Values must match the following regular expression: 'ga:[0-9]+'' in /home/mhd-01/www.twatac.net/htdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php:66 Stack trace: #0 /home/mhd-01/www.twatac.net/htdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 /home/mhd-01/www.twatac.net/htdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(177): Google_REST::execute(Object(Google_HttpRequest)) #2 /home/mhd-01/www.twatac.net/htdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(274): Google_ServiceResource->__call('get', Array) #3 /home/mhd-01/www.twat in /home/mhd-01/www.twatac.net/htdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php on line 66
Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?tried that too, always in series order
Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?forgive me, I do not speak English well.
I do not want to print comments, I need an array with the right order of the ID of the comments.
with wp_list_comment() I get the order right, but writes the tags that I do not need, as you saw in the screenshot.
then, or edit the WP files, or find a way to remove those tags, or re-invent the function that generates the order.
with var_dump($comments) I see that the comments are in order of increasing ID, wp_list_comments calculates each time the order, but how?
thanks for now, and greetings from Florence (Italy)!
??Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?order of comment in $comments
comment 10
comment 11
comment 12 is reply to 10
comment 13
comment 14 is reply to 11
comment 15 is reply to 11
comment 16 is reply to 14right order
comment 10
comment 12 is reply to 10
comment 11
comment 14 is reply to 11
comment 16 is reply to 14
comment 15 is reply to 11
comment 13Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?imagined that Global was not a good idea …
fake() is the only way I’ve found to get the right order of the comments
Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?yes, you’re right, it would be a problem for the next update
this is my comment.php
<?php function fake($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['fake'][] = get_comment_ID(); } wp_list_comments('type=comment&callback=fake'); var_dump($GLOBALS['fake']); ?>
if I use div as an option for style, writes div instead of ul/ol
Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?you mean by hacking?
I edit core_file of wp?
write a plugin?can you give me the instructions, I do not know where to start
thank you!
Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?hi!
I tried it, Twenty Eleven uses wp_list_comments, would be fine, we would pass a function to get the ID in the right order (including reply), but then print in the page div or ul/ol
I do not need.I only need the ID of the comments in the right order, I will not print anything.
?
I’m trying to write a function to sort the comments, but it’s like re-inventing the wheel, WP already makes thisForum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?here: https://codex.www.ads-software.com/Function_Reference/comment_ID
or… sorry for cap slock
Forum: Fixing WordPress
In reply to: COMMENT_ID() because it does not work?has not been downloaded, it is my theme I’m working on.
I do not understand in what context should be usedForum: Fixing WordPress
In reply to: comment templatehi!!
I’m working locally, here are a couple of screenshots:
https://d.pr/i/7TWi
https://d.pr/i/1bpn (html)arrows indicate more tags generated by wp_list_comments ();
and class Walker (includes / comment-template.php)my code works, he does not need those tags,
and $args[‘style’] = ‘div’; Add unnecessary Div.tnx!