I think you’re actually looking for is_post_type_archive($my_custom_post_type)
https://codex.wordpress.org/Function_Reference/is_post_type_archive
Related Posts:
- Loading scripts only if a particular shortcode or widget is present
- Is there any way to dynamically alter widget titles?
- How to use is_active_widget?
- Show post tags in a widget
- Author template, filter sidebar widgets by author?
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- Get page IDs based on which template they are using?
- Add filter to blogroll widget
- Widget Options Not saving
- Loop through widgets in sidebar
- Where to find the source code of a widget?
- How to add author details in the post sidebar?
- Woocommerce Product Category Widget – hide categories that have no products in stock [closed]
- Role that can edit only widgets, not other theme options
- Hooking Into Widget Output Loop
- how to extend a WP_widget twice
- Inserting shortcode [stream /] into a Text widget
- How to add css classes to widgets using functions.php?
- How can I add a new CSS class to a widget?
- Creating a one click demo importer
- Using jQuery in widget development
- duplicate sidebar
- How to check if searchform.php is being included as widget?
- Is it possible to enqueue a script from a widget method (of extended WP_Widget object)?
- Full width layout for custom post type pages
- wp_count_posts, wp_count_terms and wp_count_comments for specific user?
- Why does WordPress stores widget options in a multidimensional array?
- what is option_name on database that store the information of current initiate widget in frontend sidebar?
- Widget – Store and update data
- Run JS after widget settings are saved?
- Shortcode displays always first. Once again
- Can I create drag and drop widgets like iGoogle in WordPress?
- Making the default “Latest Posts” WordPress Widget Show Thumbnails
- Display the id list of active widgets of same sidebar?
- How to remove a widget from the sidebar on specific page?
- When adding a widget, what kind of widget should I used to add images and text and styling?
- Add description to custom text widget and display the 5 recent post titles
- Add individual tag to widget title in sidebar
- Is there any way to print a widget by having its id?
- How to allow your custom widget as block in gutemberg editor
- How to save widget fields generated from an array?
- Create a widget to use shortcode?
- Need help using a filter on the default Categories widget
- Print owned created widget
- isSavingPost() for widgets
- Newbie: Help with Vertical Spacing on Footer Widget [closed]
- Content of widgets keep disappearing over and over again
- custom widget does not saved value
- Add visual editor style only on widgets.php page
- Edit and make class-wc-widget-featured-products.php update-proof
- Display Widgets Horizontally in Area [closed]
- Copy Widget Settings because of changed IDs
- Where to put custom widget file?
- How to get options of all active widgets ?
- How to pass a special CSS class into widget li
- Show Woocommerce Product “attributes/extra information tab” in widget [closed]
- How to use the widget area to extend the page content?
- Display a widget on a specific type of archive
- Add a specific css to a widget
- Is there a simple way to have a new sidebar for each page?
- Widget Title is not saving in backend
- Removing widget from home page when coming from specific landing page
- In which folder can we find the core wordpress Widgets such as Menu Widget
- How do I insert an amazon search widget into posts or pages?
- How to remove Help tab and the Dashboard widget area’s empty border
- Add drop down to widget if it is in a certain area
- using get_template_part() inside a widget and passing variables
- New Widget are not showing
- How do I exclude portrait pictures from the nextgen gallery sidebar widget?
- Add html after the first widget in a sidebar
- How to use multiple instances of Deal or Announcement With Countdown Timer Plugin Widget
- How to remove date in Recent Post widget?
- Truncate Widget Title
- How to get individual values from custom widget?
- Widgets are not displaying in my theme
- how to make video autoplay in widget
- Custom archive widget drop down menu
- Widget outputting JS as plain text
- How to show Widget in Content Bottom part on home page in twenty sixteen theme
- get_post_class not working properly
- Is it good practice to change certain page appearance through a widget?
- widgets_init actions not fired from functions.php’s child theme
- Randomizing the RSS Widget
- How to get data from one wordpress site to another
- Target logic based on Widget / Sidebar Name
- Why is the phone number a hyperlink on desktop sites, in my widget?
- $before/after_widget/title not displaying anything
- can’t edit widgets after moving from subfolder to root
- Widget checkbox array empty on update function
- register_sidebar() will not wrap an element properly
- Page full of widgets?
- Big side banners
- Widget page broken
- Widget Disappearing in IE
- How to exclude a widget from showing up on a page?
- jQuery “on” handler does not fire on newly inserted widgets [closed]
- How to find the exact widget details
- Widgets are not showing after moving domain
- Why, on Attachment pages, where the media is a video, is the video is appearing twice as Widgets in the sidebar?
- Add custom settings to widget areas