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
- 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
- the_post_thumbnail() based on the Post ID
- Conditional statement for parent, child and grandchild pages
- 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?
- How to remove this function from the homepage?
- When is is_admin() available?
- Check if current page is wp-admin
- Second Navigation inside header
- Add “last” and “first” to WordPress Comment Pagination Links
- WordPress get pagination on wpdb get_results
- Output 2 items within the Loop
- 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 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
- Increase returned number/pages on pagination
- Adding nofollow to a PHP generated Nav
- Unreadable pagination
- How to show all pages in blog navigation?
- get_terms pagination
- WordPress, AJAX and pre_get_posts using conditional tags
- Search not showing all results
- two columns of posts on homepage, one of them “favorites”
- PHP code to use on next & previouspage links
- How to get all author posts outside of author templates
- Custom Pagination is Broken
- Pagination on Custom Post
- How can I display a div ONLY if it is not a certain term page
- Next post link on a bootstrap button
- Don’t show certain div on front page?
- Add class to DIV depending on page loaded
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Generating rel=”prev” and rel=”next” using filters
- Undefined index for default custom theme option
- Need help with Code Correction php+wordpress
- Custom query vars filters problem with pagination
- Need help with pagination
- show recent posts php code error?
- Change homepage content if user is logged in – BuddyPress
- WordPress pagination not working in search result page
- “if parent category is” conditional?
- Remove Post if Advanced Custom Field is checked to fix paging
- How to add PHP pagination to wordpress
- Conditional for Post Format
- conditional: if is page, and all subpages
- Woocommerce getting top level category parent and make all sub categories have the same template and menu
- Pagination stays on same page for post category
- Pagination Not Working (pages duplicating content)
- How to work Woocommerce pagination inside shortcode?
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- Pagination contents not changing in Front page WordPress
- Load more posts using AJAX based on posts inside WP_Query
- How to stop hiding buttons forward / backward in pagination?
- How to make a pagination with dropdown selection?
- How can i create a function tag in my plugin
- Link to index.php from home.php?
- Trying to get pagination working on WP_Query() post grid
- Add code to the header of posts by particular author
- Display specific page if user signed in
- Pagination 404 error(I have refreshed the permalinks and tried several previous options)
- Top Authors list by highest post views with Ajax pagination
- How to get Post sidebar & footer including html like get_the_content() which only gets content section?
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- Exclude a category slug on pagination
- Widget Logic – display on page and all child
- Different home page for logged off users
- 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
- WordPress pagination broken on blog page, working for search results page
- How to define Og Meta Tags in header using conditions [duplicate]
- How to hide something from custom home page with php code?
- Pagination on Custom Loop
- 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
- Pagination not displaying
- WordPress post pagination on custom template not working
- Pagination in category.php not functioning
- Adding slides to an existing carousel manually
- 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?
- Pagination not working properly
- What does this if-statement do?: if($pages=’ ‘) {}
- Not able to see the error [closed]
- How to Set Page Pagination Using Ajax JQuery – WordPress
- if is specific custom post in cpt
- WordPress Block Editor Gutenberg running code inside ! is_admin()