Keep the wordpress custom type, after disabling theme?

You can use unregister_post_type(‘slug’) – where ‘slug’ is the CPT, such as ‘portfolio’ or ‘book’ or whatever your particular CPT is, and then re-register the CPT. I would suggest doing this in your own custom plugin so you can change themes freely. So if your CPT is ‘portfolio’ you can create a file in /wp-content/plugins/wpse_360145_create_cpt/create-cpt.php: … Read more

WordPress pagination URL

This is not pagination, this is site structure. Similar structure can be achieved by the following: Pages and subpages (default functionality) Posts and categories or tags (default functionality) Hierarchical custom post types (using plugins or coding yourself) Custom post types and taxonomies (using plugins or coding yourself) Depending on a variety of causes, possibly, you’ll … Read more

How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query

while ( $loop->have_posts() ) : $loop->the_post(); //Edit Width post type $categories = get_the_terms(get_the_ID(), ‘services’); $separator=”, “; if ( ! empty( $categories ) ) { foreach( $categories as $category ) { echo ‘<a class=”cat_item” href=”‘ . esc_url( get_category_link( $category->term_id ) ) . ‘” alt=”‘ . esc_attr( sprintf( __( ‘%s’, ‘your-themes’ ), $category->name ) ) . ‘”>’ … Read more