dacarr
Forum Replies Created
-
Ok … I have discovered some new weirdness.
First, I am not using any caching plugins. Second, I deactivated all plugins, except YASR and it worked. Then I tried activating plugins 2-3 at a time and tried editing the ratings and that worked. Once they were all back to “normal,” I could still edit ratings.
So then I deactivated all of the plugin again and created a new post and rating. That worked. So again I tried reactivating plugins and finally discovered this:
If, on a new post, I
(1) select a rating and then
(2) click the “Select” button for a type of review (i.e. Product, Place, Recipe, etc.) the rating was not kept when I saved a draft of the post.However, if I
(1) chose the type of review,
(2) clicked the “Select” button,
(3) chose a star rating and then saved a draft, the rating was saved.It would appear that somehow the star rating is being set back to 0 when using the first order.
as a matter of fact, three say:
preventDefault();while the fourth says:
e.preventDefault();OK… There are four warnings and they all say “unreachable code after return statement”
How do I do that? I tried enabling WordPress debugging, but not sure that’s what to do. Couldn’t find any errors related to the plugin.
Forum: Fixing WordPress
In reply to: Getting postsExcellent!! That did the trick!
Thanks for all your help
Forum: Fixing WordPress
In reply to: Getting postsBoth queries returned the same response:
REQUEST:SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (4) ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date ASC LIMIT 0, 10The only difference was the category ID returned in wp_term_relationships.term_taxonomy_id IN () … in one case, it was “3” which is the category ID corresponding to “A” in the initial post and “4” which is the category ID corresponding to “B” in the initial post.
Is it possible that the last line, “LIMIT 0, 10” is causing the limit of 10 items returned in the original post?
Forum: Fixing WordPress
In reply to: Getting postsThat’s what I thought too, but when I query category A I get 5 items returned; however when I query category B only 10 items are returned, not 12, so something is obviously not right … not sure what though.