s the more descriptive, specific name for use within this method. $taxonomy = $object_subtype; /** * Filters the max number of pages for a taxonomy sitemap before it is generated. * * Passing a non-null value will short-circuit the generation, * returning that value instead. * * @since 5.5.0 * * @param int|null $max_num_pages The maximum number of pages. Default null. * @param string $taxonomy Taxonomy name. */ $max_num_pages = apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy ); if ( null !== $max_num_pages ) { return $max_num_pages; } $term_count = wp_count_terms( $this->get_taxonomies_query_args( $taxonomy ) ); return (int) ceil( $term_count / wp_sitemaps_get_max_urls( $this->object_type ) ); } /** * Returns the query args for retrieving taxonomy terms to list in the sitemap. * * @since 5.5.0 * * @param string $taxonomy Taxonomy name. * @return array Array of WP_Term_Query arguments. */ protected function get_taxonomies_query_args( $taxonomy ) { /** * Filters the taxonomy terms query arguments. * * Allows modification of the taxonomy query arguments before querying. * * @see WP_Term_Query for a full list of arguments * * @since 5.5.0 * * @param array $args Array of WP_Term_Query arguments. * @param string $taxonomy Taxonomy name. */ $args = apply_filters( 'wp_sitemaps_taxonomies_query_args', array( 'taxonomy' => $taxonomy, 'orderby' => 'term_order', 'number' => wp_sitemaps_get_max_urls( $this->object_type ), 'hide_empty' => true, 'hierarchical' => false, 'update_term_meta_cache' => false, ), $taxonomy ); return $args; } } {"id":351886,"date":"2023-04-13T14:45:32","date_gmt":"2023-04-13T18:45:32","guid":{"rendered":"https:\/\/www.charlestonsouthern.edu\/?post_type=calendar_event&p=351886"},"modified":"2023-04-19T14:15:21","modified_gmt":"2023-04-19T18:15:21","slug":"arts-month-student-recital-annalisa-blevins-soprano","status":"publish","type":"calendar_event","link":"https:\/\/www.charlestonsouthern.edu\/calendar_event\/arts-month-student-recital-annalisa-blevins-soprano\/","title":{"rendered":"ARTS MONTH: Student Recital Annalisa Blevins, soprano"},"content":{"rendered":"\n

On Saturday, April 15, Annalisa Blevins, soprano will present her recital at Lightsey Chapel at 7 PM. Ms. Blevins is a junior majoring in Music Performance \u2013 Vocal and studies voice with Mr. Ricard Bordas. She will be assisted by Dr. Elaine Ross on piano. This recital is free and open to the public.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"

On Saturday, April 15, Annalisa Blevins, soprano will present her recital at Lightsey Chapel at 7 PM. Ms. Blevins is a junior majoring in Music Performance \u2013 Vocal and studies voice with Mr. Ricard Bordas. She will be assisted by Dr. Elaine Ross on piano. This recital is free and open to the public.\u00a0<\/p>\n","protected":false},"featured_media":0,"template":"","calendar_event_category":[87],"calendar_event_tag":[],"class_list":["post-351886","calendar_event","type-calendar_event","status-publish","hentry","calendar_event_category-hsmpa","regular","location-338554","event-category-hsmpa"],"acf":[],"jetpack_sharing_enabled":true,"generated_slug":"arts-month-student-recital-annalisa-blevins-soprano","_links":{"self":[{"href":"https:\/\/www.charlestonsouthern.edu\/wp-json\/wp\/v2\/calendar_event\/351886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.charlestonsouthern.edu\/wp-json\/wp\/v2\/calendar_event"}],"about":[{"href":"https:\/\/www.charlestonsouthern.edu\/wp-json\/wp\/v2\/types\/calendar_event"}],"wp:attachment":[{"href":"https:\/\/www.charlestonsouthern.edu\/wp-json\/wp\/v2\/media?parent=351886"}],"wp:term":[{"taxonomy":"calendar_event_category","embeddable":true,"href":"https:\/\/www.charlestonsouthern.edu\/wp-json\/wp\/v2\/calendar_event_category?post=351886"},{"taxonomy":"calendar_event_tag","embeddable":true,"href":"https:\/\/www.charlestonsouthern.edu\/wp-json\/wp\/v2\/calendar_event_tag?post=351886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}