How to set the permalink of category is example.com/cat_id?
How to set the permalink of category is example.com/cat_id?
How to set the permalink of category is example.com/cat_id?
How can I disable links for categories but keep showing them on my blog in an Elementor Template?
The built-in solution to change the order of posts in a category is to change the “Order” attribute of each post. If your post type is set to support “Post Attributes”, you should have a box that looks like this in your right sidebar when editing the post: 0 will be the first in the … Read more
Disable the Canonical redirect will keep the code work: function disable_canonical_redirect_for_download_page( $redirect ) { if ( isset( $wp_query->query_vars[‘download’] ) || is_singular() ) { $redirect = false; } return $redirect; } add_filter( ‘redirect_canonical’, ‘disable_canonical_redirect_for_download_page’ );
yes, you can use a custom name for your template and style it as you need, take a look at the codex: http://codex.wordpress.org/Category_Templates
Use a taxonomy.php template?! taxonomy.php <?php get_header(); ?> <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); ?> <h1><?php echo $term->name; ?></h1> <?php global $query_string; query_posts( $query_string . ‘&orderby=title&order=asc’ ); if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h1><a href=”https://wordpress.stackexchange.com/questions/72934/<?php echo get_permalink(); ?>” title=”<?php the_title(); ?>” rel=”bookmark”><?php the_title(); ?></a></h1> <?php … Read more
Yes there is such possibility. Just change your code to this: $main_category_name = YOUR MAIN CATEGORY NAME; // get the main category of this section (i.e nadchodzące) foreach( ( get_the_category() ) as $category ) { if ( $category->cat_name != $main_category_name ) { $category_name = $category->cat_name; $category_url = get_category_link($category); $cat_com_url = get_comments_link(); } <span class=”cb-category”><a href=”https://wordpress.stackexchange.com/questions/106337/<?php … Read more
It’s hard to say what exactly is going on without more information, but seeing as you’re new to WordPress, it may just be a simple Permalink issue. When on your dashboard, go to Settings > Permalinks, and change this to the “Post Name” option. If that doesn’t work, please provide more information. Is category an … Read more
I took a look at your homepage, and I see what you mean. It looks like a widget is being used to generate that output, so take a look under Appearance > Widgets, and see if there is a widget area for the homepage used to generate the Music Reviews entry.
You can use taxonomy term meta for that. Like you said you have “team” and “player” taxonomy. Now you can add a taxonomy term meta on “player” taxonomy’s terms and save the “team” terms(where the “player” belong) ID on that “player” taxonomy term meta. Then get the the player based on that “team” taxonomy term … Read more