bdonova1
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: User Query HelpYes, that was the main problem. It gave me a better looking query in Query Monitor, but initially gave me no results. Looking at the resulting query led me to believe the problem was in the secondary orderby. The problem was this:
'lname_clause' => array( 'key' => 'last_name', 'value' => ''I thought I needed a
value =''Just removed the value= ” under the lname_clause and now getting proper results and sorting.
Thanks for the help!!
BrianForum: Developing with WordPress
In reply to: User Query HelpThanks for the explanation on meta_query. Yes, the $decade is exactly as you indicated. I can also remove the variable and just put
array(1970, 1979)and I get same behavior.
In my first example which works to at least select the correct years, the query looks as expected in Query Monitor.
The second example, my arguments are ignored completely, and just see this query:SELECT SQL_CALC_FOUND_ROWS users.* FROM users WHERE 1=1 ORDER BY user_login ASCwhich just gives me all users.
I followed an example here:
I assume I have a problem with my arguments, but I don’t see it. I’d really like to get that second orderby working.Brian
Forum: Themes and Templates
In reply to: [Sequential] Comment Section on Main PageChad,
Thanks for the response. It did work, though left a large amount of whitespace after the form. It is a bit more than what I intended, though I probably wasn’t clear enough.
Seems like most themes already do this, and for some reason Sequential does not. I’d prefer a line like this at end of each post on main page:
# of Comments Leave a Comment
That would obviously link to the pertinent page. With the number of comments less important to me. But this is similar to what shows up on pages for individual posts, I’d just rather not expect users to know they need to click on the post title if they’d like to comment.
I’ve attempted to find the code and place it in the main loop – but unsuccessfully so far. If you or anyone could point me to a solution, it would be appreciated. But I am learning more about WordPress as we go.
Brian