In line 51:
query_posts("s="$s"&cat=177");
change to this:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("s="$s"&cat=177&paged=$paged");
Related Posts:
- Search/Replace for editor in HTML-mode
- How do I prevent one of two multiple loops from repeating on a second page?
- Broken pagination
- Custom Permalinks Break Search Pagination
- Pagination Not working on Home Page with 2 Query
- Custom Loop Pagination on WordPress
- Default WP search excluding specific characters, is it possible?
- Replace default WordPress search behavior with Sphinx
- Adding Pagination on a Custom Author Page
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Pagination Issues using WP_Paginate Plugin
- Cutom wp_query for geolocation search, pagination not working
- How do I get my custom query to work with search results after the first page?
- Pagination Error : Duplicate argument being outputted
- pagination broken – clicking next displays “page not found”
- Pagination for two loops
- Pagination in author, category, archive and tags pages does not work
- Problem with WP_Query loop and search term
- Custom query pagination with php parameter as arg problem
- WordPress custom search – pagination
- Search & Replace trailing strings
- Pagination on Custom Loop
- Displaying posts limit: can’t get pagination to display [duplicate]
- Pagination problem with multiple loops on the same page
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Custom Page Template and Category Exclusion
- Search and replace titles of posts with specific tags
- Limitless amount of posts in custom archive page
- Pagination URL not good
- Search.php display results differently based on post type
- Custom taxonomy archive page problem
- How do i append UNION SQL Query with default search query
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- How to add one more query string with search query string
- Displaying number of search results for each post type
- How to append a query string to pagination?
- Move Genesis Single Page/Single Post Title
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- How to modify search.php to not show pages only show posts
- Search – Only search for post meta field
- Why is this search form not submitting when button is clicked?
- Search Form Based On Tutorial Not Working
- Order search results by category
- Search not working. Appending a “
- Pagination on category.php and tag.php not working
- Search posts by Tag
- Improved WordPress search functionality and search form plugin
- how to show Author information in search results
- Strip HTML Tags From Search Results
- How to do paging in the loop?
- Search URL parameters query [duplicate]
- Search within table?
- How to build an advanced search form by post type?
- Total number of posts in query (category/tag/author/search results/main page…)
- Use wordpress search to display results within a post
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- How to insert meta keyword to search result page
- How do I get my loop.php to properly paginate?
- Search returns everything if search term has a space
- Page with Multiple Loops Breaking Pagination
- How to query two meta fields and display results between them
- Search by meta_query
- When to use WordPress loop or Foreach loop?
- Change Twentyeleven Search Form Text
- WordPress Query Posts From Category Post on Static Page
- Restrict Search Results to Post Author
- Pagination Not Working When Modifying Loop Based on Post Category
- redirected to the login screen when I do a blank search
- Displaying multiple post types on home page
- BuddyPress – Search members by name and also by username
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- Intelligent Search Filtering
- Add Google custom search to wordpress.com [closed]
- Include results with tags relevant to the search keyword with JSON rest API v2
- Getting blog pagination to work on page set as front page
- First archive page with a few posts
- Search function does not work on mobile devices
- Should I create a parent page with no content? [closed]
- Applying WP-cli Search & Replace to Static SQL Dump File
- Custom search Dashboard widget
- Changing default wp search string
- Changing the ORDER BY in WordPress default search function
- some one help . search not jump to search page
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- How do I exclude a specific page (and child pages) from the search results?
- Loop in elementor custom widget not working
- Pagination broken after using 2 loops to show content
- Include future posts in tags and in search
- Why should we use the name attribute with the value “s” in the creation of the search form?
- Sort WP Search results by date
- Pagination on custom post type on front-page.php
- How to create custom search page
- How to search titles/artist/album within a playlist, and only lists the results that match?
- List post by title length
- Disable character’s replace in search
- Sitelinks Search box schema confusion
- Need help with pagination
- I have broke my pagination, same posts on all pages (index.php)
- how to search everything
- The Search FoRM Dilemma || The Search form Templating