Figured it out. use is_home()
to detect if its the posts archive page. kind of counter-intuitive because i always thought that function was to determine if it’s the homepage, found out there’s a is_front_page()
for that.
Related Posts:
- How do I apply a wordpress function to something with no ID inside an archive page?
- Get page ID of page that is set as the posts page
- Difference between an archive and a page listing posts
- Are post ID’s reliable?
- Get current post id in functions.php
- get all posts ID from a category
- has_archive=false on the default post type
- Clear cache when a post is submitted [closed]
- Get the current post ID as a variable in Javascript
- Is post ID number always incremental n+
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- Post Format Archive template name for theme folder?
- widget should display post archive by year and on click also by month
- Are all ID’s used unique?
- $post->ID displays wrong ID
- Must permalinks always point to single post pages?
- Display most recent post in category instead of archive?
- Single.php Active Category Class
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Showing random content / pictures from earlier posts in a sticky post?
- Get the post_id of a new post
- get_post_type_archive_link(‘post’) returns current category archive
- get post id in while loops outputting page id
- How can I display a specific user’s first published post?
- Undefined variable post_id in custom quick edit coloumn
- How to get the latest posting time of archived pages in WordPress?
- change default post archive page link
- Getting post id from wp_insert_post_data function?
- Does an article (post) id ever change?
- How to get the post’s parent ID?
- Display all months with posts and inside each month show the 5 latest posts
- Can a page_id and a post_id be same?
- Display posts from #6 to #20 on archive page
- Is there a better, more efficient way to get the post id outside the loop?
- Getting current post ID in functions.php
- Buddypress activity id
- Category List (Archive) Page Template By Category
- Getting category posts from a certain year
- Yearly archive page for future year
- How blog page in WordPress works : blog page retrieve first post ID
- Which URL to enter into browser to show all posts in archive.php?
- How to display data in archive page?
- Guest Author – How to display posts on /author/ archive page
- Post-ID in url differs from $post->ID
- Why is my Blog Page ID == First Post ID?
- current post with current author
- Is it possible to change post id for an already added menu item in WordPress?
- Get ALL post ID’s export list (Only id’s. Php or sql not important )
- Archiving by academic year instead of calendar year
- How to get next post ID?
- List category posts alphabetically on archive.php
- Search results posts_orderby and ID
- How to display excerpt post on hamepage and archive pages?
- Retrieve post ID from “querying” URL
- Increase 10 post limit per page
- Automatically create a new page daily with last three posts
- How to get a post’s content? [closed]
- Archiving posts in wordpress
- obtain the author id given the post id
- How to get ID of the page included with get_page()?
- How to I retrieve the ID from the Posts page?
- Crazy Question – Updating Post ID
- Why I can not I use the variable outside my function?
- Custom Post Type archive
- How can i take all ids from untrash_post action?
- Get from the dashboard the ID of the current post being edited
- Page 2 has no posts?
- Only get post_id [duplicate]
- Surrogate ID for posts, is there an alternative field in the posts table?
- Disable archiving of old posts?
- Is it possible to have dynamic post id # in add_menu_page()?
- is_archive() not working on selected “Posts page”
- How to display term in archive page?
- My posts section for logged in user
- Using Post ID and Page ID in same function
- How to organise post by category and date
- Daily posts like an archive
- How to set a link to custom archieve page
- How to get alphabetic listing x other posts, based on first letter post?
- unused post IDs
- How do I display the next 3 posts in the sidebar?
- Display all posts from selected month
- How to get pagination working with “Pending” Posts
- Show all posts in category
- custom sort posts in archive/taxanomy page
- Custom post page has attributes of latest post [closed]
- how to show all post with its contents
- Can I get custom post items in select box (dropdown)
- Add author section on Author archive posts
- What is $post->ID
- View post with specific category id and name which I selected in the backend (drop-down option)
- Display post count on archive page in reverse order
- Filter/Sort Post Form On Taxonomy page
- How to get post ID after removing that post?
- Global $post value outside the loop
- Category and archive issue
- Remove Archive Posts Page
- Display posts on a custom page from only a specific category?
- Why does ‘get_the_ID’ work outside of the loop?
- Display post archive as a month table, show last three months