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:
- Getting paginate_links() ‘end_size’ to display none
- WordPress AJAX Pagination with query_posts
- Static Frontpage Pagination – Custom loop
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Current post’s author name in the author meta tag
- Rewriting search and pagination base
- Add Adsense code in index.php
- WooCommerce – Customer Order History Pagination
- 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
- get understrap pagination to work with custom query
- 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
- How to display recent posts on home page with custom HTML
- conditional statement for custom taxonomy
- Sorting Posts | Alphabetical Order
- 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 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
- How to show all pages in blog navigation?
- WordPress, AJAX and pre_get_posts using conditional tags
- Pagination in plugin’s backend
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- PHP code to use on next & previouspage links
- Pagination for custom shop loop woocommerce
- If tag equals then show else show
- I restricted wordpress by logged users. It’s possible exclude a page?
- How to create pagination for users list using custom array?
- Conditional statement for dates
- Pagination on Custom Post
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- Prev/Next Links Broken on Static Front Page Pagination
- Pagination broken on is_front_page()
- Don’t show certain div on front page?
- If ‘editor’ is empty, then
- How to include custom code on a page that’s set to act as homepage?
- the_posts_pagination() not working in wpquery
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Remove conditional tag from header
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Display an image based on field value
- Multidimensional Array
- Amend theme php to include certain category in header
- Custom pagination (Previous / Next)
- pagination broken – clicking next displays “page not found”
- Woocommerce getting top level category parent and make all sub categories have the same template and menu
- Pagination in single.php
- Pagination at category doesnt work with same name of page
- Help to modify wp_link_pages()
- How to add Text before my Custom Term and hide it when empty
- static page pagination not working
- Menu not updating for logged in users after redirect
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Pagination – Previous link is not show and Next link sticks at page 2
- Having trouble with customizing blog posts on the home page
- Top Authors list by highest post views with Ajax pagination
- image on homepage disappeared due to change of permalink name
- How can I get my pagination loop to display the correct number of total pages?
- WordPress Single Post Pagination Numbered and Navigational
- Add a leading zero to pagination
- Get current_post in reverse order with pagination
- Insert div after every three posts in home.php [duplicate]
- 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
- How to display html code on homepage
- Use page.php for front page
- If Month=Particular month display content [closed]
- Pagination on Custom Loop
- How can i list all user registered on my website and have pagination [duplicate]
- 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
- 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
- Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]
- 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
- 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()
- Side bar only if it’s not a single post or a specific page
- Category Attachment Pagination 404 Error on 2nd Page