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
- Search is always exact [closed]
- How to look at code in WordPress repositories without downloading?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Insert DIV container below 1st search result
- How to make WordPress search prioritise page titles?
- Let user change posts per page
- Search results URL without query string variables
- Comment filtering (search)
- How to control WordPress Search Behavior?
- Search – Ajax – Alter Query Parameters with Pagination
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Changing the search results destination URL
- Making a list of post tags in string
- Strange Search Queries in Apache Status
- WP_User_Query search with multiple search queries
- update default search function and get postmeta entries
- How to paginate this custom loop? [duplicate]
- paged > max_num_pages won’t throw 404
- Date_query problems
- Conditional statement to show pagination
- Why only one post (and no pagination) on this variation of the loop?
- Why do next pages load the same content rather then older articles?
- Paging doesn’t work?
- Separeting product from post in search result
- Need to return a list based on Slug
- Filter the_posts doesn’t work on search page
- Search not showing all results
- Get Adjacent post by search query
- How to exclude pages from WP search based on page title
- Improved WordPress search functionality and search form plugin
- Use wordpress search to display results within a post
- How do I get my loop.php to properly paginate?
- First archive page with a few posts
- Need help with pagination
- Localization of WP theme
- WP + Google analytics = /search?
- Search result count not matching actual result
- I am officially missing something about transient posts
- Custom Post Type Single Loop Outputting Wrong Post
- Custom post type pagination error
- How to create a search form with multiple search fields
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- REST API: Search products only in the names
- Bots using internal wordpress search
- Altering search results to handle a post meta field not working in current WordPress
- Remove pagination if search returns empty
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- WordPress search post using unicode
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Create search box on Archive Custom post type
- control posts order by select option
- next_posts_link() always generates second page link on custom post type
- How to append the excerpt to the content in the single post page?
- How to fix pagination for custom loops?
- Custom loop not working in singular.php, working in other pages
- Auto search field without buttons, shows first result from search page
- Search pagination link redirecting to a link that doesn’t work with pagination
- search does not yield access restricted results
- Customizing Home Page with Pagelines Platform
- Search Limited to Categories Not Working
- Home page loop with pagination problem
- WooCommerce custom loop pagination on front page
- Eliminate duplicates in a foreach loop [closed]
- WordPress post pagination on custom template not working
- Website Search Results Not Showing Images
- Static posts page is not working
- Show total sales for each products on search results page Woocommerce
- Custom Search on media files PDF images pages posts
- “feed” added at the end of my URLs
- Disable – Post search field – for non-admin roles in WP dashboard
- Search results heading and counter not working – Oxygen Builder
- Pagination only showed when no category is set in wp_query