do you mean you want a conditional for page 1 of all home queries which have more than one page as result?
try to use $wp_query->max_num_pages
;
example:
if (is_home() && $wp_query->max_num_pages > 1 && !is_paged()) echo '/page/1'; else echo "https://wordpress.stackexchange.com/";
Related Posts:
- Modify previous and next text from pagination links
- Getting paginate_links() ‘end_size’ to display none
- WordPress AJAX Pagination with query_posts
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Static Frontpage Pagination – Custom loop
- Show content if parent page has children
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Current post’s author name in the author meta tag
- the_post_thumbnail() based on the Post ID
- Rewriting search and pagination base
- Add Adsense code in index.php
- WooCommerce – Customer Order History Pagination
- Conditional statement for parent, child and grandchild pages
- Changing Link Attributes for Wp_Link_Pages
- Custom Loop Pagination on WordPress
- Edit format of Paginate_Links()
- Pagenavi pagination via wp-query in functions.php showing same content for each page
- Trying to use Ternary operators with WP Conditionals
- How to check if comments are paginated?
- get understrap pagination to work with custom query
- How to remove this function from the homepage?
- When is is_admin() available?
- Check if current page is wp-admin
- Second Navigation inside header
- Customized title tag for each page in pagination?
- Add “last” and “first” to WordPress Comment Pagination Links
- Using is_page() in functions.php not working at all
- WordPress get pagination on wpdb get_results
- Output 2 items within the Loop
- How to display recent posts on home page with custom HTML
- conditional statement for custom taxonomy
- Sorting Posts | Alphabetical Order
- Getting rid of role=”navigation” in the Home Page Pagination
- Page navigation not showing even tho it should
- How to enqueue CSS and JS only on specific template?
- How to get the Page Number of the Current Page in Single Post Pagination
- How can I add pagination and how can I change thumbnail size?
- How can I hide Home in my menu in a specific page?
- WP-PageNavi is showing the first page only
- Displaying the last post on static homepage
- How can I properly control the numbers and dots that appear in pagination?
- how could I load a different template part by page
- Increase returned number/pages on pagination
- Adding nofollow to a PHP generated Nav
- Using loop pagination on single.php
- WordPress 3.2 query_posts and pagination, permalinks issue
- Unreadable pagination
- How to show all pages in blog navigation?
- get_terms pagination
- Widget Logic – display on page and all child
- Different home page for logged off users
- Insert div after every three posts in home.php [duplicate]
- Need to adjust condition to say if I’m pulling categories from a post, to pull only the first one
- Apply filters when loading post via ajax
- offset and max_num_pages in pagination gallery
- rewrite_rule – working fine but broken for pagination
- if user is admin display admin link and logout link else display logout only
- How to fix blank pagination links?
- Add code only for blog posts
- WordPress pagination broken on blog page, working for search results page
- How to display html code on homepage
- How to define Og Meta Tags in header using conditions [duplicate]
- Use page.php for front page
- If Month=Particular month display content [closed]
- How to hide something from custom home page with php code?
- Pagination on Custom Loop
- How can i list all user registered on my website and have pagination [duplicate]
- Removing template part when not on homepage if / else
- How to echo a different field if another field is empty?
- Adding else if conditional statement to purchased theme
- Adding if statement to content for homepage
- I want Page titles and excerpts to show up on home.php in certain order
- Conditional in foreach loop is outputting content twice
- Pagination not displaying
- WordPress post pagination on custom template not working
- Pagination in category.php not functioning
- Advanced custom fields Repeater conditional statement not working [closed]
- Adding slides to an existing carousel manually
- How to add pagination for wordpress home page
- Pagination 404 on my index.php
- Load slideshow.css file only if Slideshow is checked / on
- Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?
- Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]
- Pagination not working properly
- paginate_links() returns NULL instead of the pagination links, but pagination is actually happening
- What does this if-statement do?: if($pages=’ ‘) {}
- Not able to see the error [closed]
- Blog Posts not sorted and pagination not adjusted after filtering some category
- How to Set Page Pagination Using Ajax JQuery – WordPress
- if is specific custom post in cpt
- advanced custom fields: repeater field within conditional statement [closed]
- /page/2/ redirect to 404
- Why do I get a 404 error on my custom post type archive pagination?
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- How to make my scroll bar show under condition
- Custom post type removing /page/2/ from URL when trying to access it
- Pagination with WP_query giving same items in each page
- Side bar only if it’s not a single post or a specific page
- Category Attachment Pagination 404 Error on 2nd Page
- WooCommerce: Custom dropdown for variation selection