This line is likely the issue –
$where = " AND ( atl_posts.post_author = {$authorID} ) ";
You are replacing the contents of $where, not changing it. You have to use .
before =
–
$where.= " AND ( atl_posts.post_author = {$authorID} ) ";
Related Posts:
- On WordPress Search, how to search post from Author meta also
- How to hide meta from search result only on pages?
- Custom author search
- Including categories in search results
- Hook that get’s triggered when the author of a post is changed
- the_author() returns empty string
- Prevent Authors from viewing each others Posts
- Display Random Author with Details in Sidebar
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- How to show list of posts by author and category?
- WordPress: How to get the current logged in author page URL?
- How to add editor’s name to entry meta byline?
- Different permalink for posts and authors
- How to display posts by current user/author in a custom page template?
- Display all search results
- Query posts distinct authors
- Restrict the Number of Posts an Author can Publish (over time)?
- Get the user type of an author
- Search not working with title and content
- Show the title of the latest post by author
- Find most recent authors
- Show author post count in sidebar – Variable
- Get current users post URL?
- Get the author of the latest revision
- Filter posts by author and category simultaneously
- how to hide specific post from google search
- Custom Post Type & Author not associating, user post count is 0, api doesn’t return author in post objects
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Post author is changed to admin after his post is modified by admin
- How to search only by post title and category?
- Search widget breaks when using multiple loops?
- Get all posts by post_author
- Pagination not working on custom query
- How can I control multiple editing of wordpress posts?
- Multiple authors for single post without plugin
- Limit number of posts a user can make per minute?
- How can I get all posts data from within a paginated search result?
- Authors in menu, template list post by author
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- Author must complete profile info before they can publish a post?
- WP rest api returns 404 only when author param is used
- Search query – exact post title match
- How can I list random authors from current post category?
- pagination hook doesn’t work with search results
- Search for posts based on their url in the admin?
- wp_query ‘s’ parameter does not work with custom post type
- Differentiate between posts and pages in search results
- Count search results in heading
- Private Posts/Pages & Search
- Display number of posts via adress bar?
- How can I show wordpress posts based on author?
- Show info to author only
- Tags to Post-ID mysql query. Tag Search
- Auto “expire” all of an authors posts on spcific date
- how to show comments only author which send own posts in wordpress
- Showing Posts if non are found
- search form for custom fields
- Restricting displayed posts to posts from only select authors
- Author post count in category
- How to show posts in grid style on search result page?
- Search results with pagination not working
- How to show only homepage in google results instead of privacy, contact pages
- Change of author not updating
- Redirecting wordpress search query to archive page
- Limit Post Creation Count by Author or Role
- How to search through “post title” and “tags” using WP_Query?
- How to create custom search form function including post “tags”
- Display post by Random Authors on Page Refresh
- Remove pagination if search returns empty
- What permissions does a role need for the user to be assigned as the author of a post?
- How do i search post by jquery datepicker?
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- show only one category and filter by tag
- Numbering author posts in posts query
- Find post tags words in post content and link them to tag URLs
- Changing the Category for all posts of an Author
- WordPress search for specific Post Type
- List of authors posts minus very latest
- Display result of custom form
- show latest authors blog post
- Customize search results to include custom posts and display in a specific template page
- Getting posts from multiple users?
- Display the current post author and his url in the post header
- Create a Page Template Which Displays All Posts by Current User
- Set the limit to allow author when make post!
- How can i retrive the movies, trailers, news in a single page using search
- Show last post of employee in his profile page
- Custom Post Title as search term
- How to get single post by one author?
- Related posts by searching post tags of single post as terms
- Notify Author of the post if admin deletes his post and perform some function
- how to show all type of author posts in author page (SOLVED)
- Echo author slug in post edit page
- How to show total view count across all posts for an author
- How can I add Author’s phone number to wp profile and make it appear in wp-admin/edit.php columns
- Add author section on Author archive posts
- How to get only post=’product’
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Search doesn’t display posts with images
- users followin the blog post author