Use Custom Post Type archive page for the taxonomies term archive page

In my wordpress theme I created a new custom post type ‘books’ with 2 taxonomies (‘series’, ‘genres’). when I visit the archive of the cpt ‘books’ (, I list all the books.

I added a custom frontend filter to get in this archive page books by taxonomy terms by passing an argument to the url with the name of the taxonomy and the terme (like this: Like a book browser.

But wordpress is by default creating the link for my taxonomies like this ( and i want it to be "redirected" to the books post type with the taxonomy argument (

Is it possible to achieve that ? Thank you

Pagination (archive posts) getting out of hand – what to do from an SEO POV?

WordPress as many of us know creates an archive loop of old posts.

From an SEO POV, some of my categories are now at 100+ pages which is a lot of bloat…

Sure, I can set each of these paginated pages a canonical link but still, feels like it is a bit unnecessary for all these indexed pages that just contain a title and an excerpt (which is basically duplicate content..)

Is one approach to simply switch off archive loops or does Google ignore these archived pages?


How to find a deleted news via internet archive?

  1. I am definitely sure that I’ve read some news between 22 Sep 2012 and 20 Mar 2013. I think that news is deleted from that site.
  2. I know the exact address of that site.
  3. That site is not in English, and it is in Persian.
  4. Also, I can remember the important keywords of that news.

I used, and it listed 15 pages per month [by average], but it should not be correct, because that site is a great news agency.

I don’t know how should I find that news. Is there any search engine in which I can restrict the address, and the interval of dates?

Also, I don’t know what is a good tag for this question. I hope that someone helps me by editing my post with some suitable tags.

Custom Post Type / Taxonomy not displaying archive

I am trying to use the Atreas Theme:

This is the site I am working on:

All I want is an archive page for my Team Members to display them all in one spot. I tried adding: 'has_archive' => true' to the plugin php files directly “cpost-team.php” but I can’t for the life of me find the url for the archive page for Team Members. Either that or I’m missing something else. This is the direct code for this “Custom Posts” (aka Team Members) plugin:

<?php  //Define team post type add_action( 'init', 'cpo_cpost_team' ); function cpo_cpost_team() {    $  show_ui = false;    if ( defined( 'CPOTHEME_USE_TEAM' ) || cpo_get_option( 'display_team' ) ) {        $  show_ui = true;    }    $  labels = array(        'name'               => __( 'Team Members', 'cpo-companion' ),        'singular_name'      => __( 'Team Member', 'cpo-companion' ),        'add_new'            => __( 'Add Team Member', 'cpo-companion' ),        'add_new_item'       => __( 'Add New Team Member', 'cpo-companion' ),        'edit_item'          => __( 'Edit Team Member', 'cpo-companion' ),        'new_item'           => __( 'New Team Member', 'cpo-companion' ),        'view_item'          => __( 'View Team Member', 'cpo-companion' ),        'search_items'       => __( 'Search Team Members', 'cpo-companion' ),        'not_found'          => __( 'No team members found.', 'cpo-companion' ),        'not_found_in_trash' => __( 'No team members found in the trash.', 'cpo-companion' ),        'parent_item_colon'  => '',    );     $  member_slug = cpo_get_option( 'slug_team_member' );    if ( '' == $  member_slug ) {        $  member_slug = 'cpo_team';    }     $  fields = array(        'labels'              => $  labels,        'public'              => true,        'publicly_queryable'  => true,        'exclude_from_search' => true,        'show_ui'             => $  show_ui,        'query_var'           => true,        'rewrite'             => array( 'slug' => apply_filters( 'cpotheme_slug_team_member', $  member_slug ) ),        'capability_type'     => 'page',        'hierarchical'        => false,        'menu_icon'           => 'dashicons-universal-access',        'menu_position'       => null,        'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'page-attributes' ),    );     register_post_type( 'cpo_team', $  fields );  }   //Define admin columns in team post type add_filter( 'manage_edit-cpo_team_columns', 'cpo_cpost_team_columns' ); if ( ! function_exists( 'cpo_cpost_team_columns' ) ) {    function cpo_cpost_team_columns( $  columns ) {        $  columns = array(            'cb'             => '<input type="checkbox" />',            'ctct-image'     => __( 'Image', 'cpo-companion' ),            'title'          => __( 'Title', 'cpo-companion' ),            'ctct-team-cats' => __( 'Groups', 'cpo-companion' ),            'date'           => __( 'Date', 'cpo-companion' ),            'author'         => __( 'Author', 'cpo-companion' ),        );        return $  columns;    } }  //Define team category taxonomy add_action( 'init', 'cpo_tax_teamcategory' ); if ( ! function_exists( 'cpo_tax_teamcategory' ) ) {    function cpo_tax_teamcategory() {        $  labels = array(            'name'               => __( 'Member Groups', 'cpo-companion' ),            'singular_name'      => __( 'Member Group', 'cpo-companion' ),            'add_new'            => __( 'New Member Group', 'cpo-companion' ),            'add_new_item'       => __( 'Add Member Group', 'cpo-companion' ),            'edit_item'          => __( 'Edit Member Group', 'cpo-companion' ),            'new_item'           => __( 'New Member Group', 'cpo-companion' ),            'view_item'          => __( 'View Member Group', 'cpo-companion' ),            'search_items'       => __( 'Search Member Groups', 'cpo-companion' ),            'not_found'          => __( 'No member groups were found.', 'cpo-companion' ),            'not_found_in_trash' => __( 'No member groups were found in the trash.', 'cpo-companion' ),            'parent_item_colon'  => '',        );         $  slug = cpo_get_option( 'slug_team_category' );        if ( '' == $  slug ) {            $  slug = 'team-group';        }        $  fields = array(            'labels'            => $  labels,            'public'            => true,            'show_ui'           => true,            'show_in_nav_menus' => true,            'show_tagcloud'     => false,            'rewrite'           => array( 'slug' => apply_filters( 'cpotheme_slug_team_category', $  slug ) ),            'hierarchical'      => true,        );         register_taxonomy( 'cpo_team_category', 'cpo_team', $  fields );    } } 

Also based on the code what should the url outcome be? I assumed it should be on:

Additionally my custom taxonomy for team members (groups) is not displaying posts that fall under the given group: enter image description here

Sorry I’m not great with php. Thank you in advance!!

How to quickly find out what the threat nature of a password protected archive without getting infected?

I have recently received an e-mail from an existing support group e-mail box with the following characteristics:

  • written in the language used in company’s HQ (different from English which is the primary communication language)
  • had a zip attachment
  • provides a clear password for the attachment
  • is a reply of a legitimate e-mail I have received from a colleague a few months ago

This seems to be similar to what is described here, so there is very high chance to have received an infected file. After a couple of hours, our security department sent an e-mail related to similar cases happening inside the company.

I am wondering about how to find out the exact nature of the threat in a secure way. I have tried the following (only the first step inside the company, the rest within a VM):

  • checked on VirusTotal, but received 0% detection which makes sense since the engines cannot scan the encrypted archive
  • Checked with the Nanoav which boast about scanning password protected archives, but it does not allow to input the password
  • opened the archive with 7zip and saw a document inside
  • extracted the file using 7zip and uploaded the document to VirusTotal => 13+ engines detected something weird.

Do previewing and extracting the archive impose any security risk or is it only the document inside that can be infected? (in this case it seems to employ a macro).

Question: How to quickly find out what exactly the threat nature of a password protected archive without getting infected?

WordPress Astra archive page: chronological numbering w/ reverse-chronological display ordering?

On WordPress using the Astra theme I have archive pages containing titles and excerpts from 10 blog entries each, and when a new blog entry is written its title and excerpt go to the front. So the front archive page always has titles and excerpts from the 10 most recent blog entries, and the archive pages are arranged in reverse chronological order. This is pretty standard.

The problem is that the archive pages are not only ARRANGED in reverse chronological order: they are also NUMBERED in the same order. Thus the front page is labelled page 1, and the 10 entries posted BEFORE its 10 entries are on page 2. Correspondingly, “next page” refers to the next higher number. So for example the “next page” after page 7 contains excerpts from the 10 articles posted BEFORE the articles that are excerpted on that page.

I need the numbering to be the other way round.

For example if there are 117 entries than I want the page referring to the most recent entries (the 108th to the 117th) to be called page 12, and the previous page to that one (referring to the 98 the to 107th) to be called page 11.

This isn’t such a peculiar thing to do. It’s how issues of periodicals are numbered, for example.

How can I achieve this, whether by amending functions.php in the child theme (preferably), by writing a “Snippet” (next most preferred), or by amending archive.php in the Astra parent theme directly (least preferred, because of possible update problems)?

I know how to renumber the posts into direct chronological order, namely using the following PHP code. But unfortunately this DISPLAYS them in numerical order, which has now been reversed. So it causes the earliest posts to be excerpted on the front archive page rather than the latest ones!

<?php  add_filter(‘pre_get_posts’, ‘posts_by_forward_date’);  function posts_by_forward_date($  query) { if(is_archive() || is_home()) { $  query->set(‘order’, ‘ASC’); } } ?> 

Any help will be much appreciated!

Use archive template for CPT but not generate urls for posts items

I need to be able to use the archive template for a custom post type but also at the same time prevent URLs from being created for the “posts” that are created, and keep the posts publicly visible.

I created the proper archive template and that works just fine, also the slug for the archive works great, but when I go to set rewrite to false I get a 404 error on the archive page. So it appears that the method won’t do. I could always create a page and query the posts in a page template but I would prefer not to.

So is there a way to use the archive template but also keep WordPress from creating URLs for the “posts” I create.

Below is the code I’m using to generate the CPT.

    function cptui_register_my_cpts_multi_fam_prop() {      /**      * Post Type: Multi-Family Properties .      */      $  labels = array(         "name" => __( "Properties ", "custom-post-type-ui" ),         "singular_name" => __( "Property", "custom-post-type-ui" ),     );      $  args = array(         "label" => __( "Properties ", "custom-post-type-ui" ),         "labels" => $  labels,         "description" => "",         "public" => true,         "publicly_queryable" => true,         "show_ui" => true,         "delete_with_user" => false,         "show_in_rest" => true,         "rest_base" => "",         "rest_controller_class" => "WP_REST_Posts_Controller",         "has_archive" => "multi-family-management/properties",         "show_in_menu" => "mf-menu",         "show_in_nav_menus" => true,         "exclude_from_search" => true,         "capability_type" => "post",         "map_meta_cap" => true,         "hierarchical" => false,         "rewrite" => false,         "query_var" => true,         "supports" => array( "title", "editor", "thumbnail" ),     );      register_post_type( "multi_fam_prop", $  args ); }  add_action( 'init', 'cptui_register_my_cpts_multi_fam_prop' ); 

First time posting here, so school me up if I’m missing anything.