menus - dot.comcar1 does work, but dot.comtransportcar1 doesn’t work

admin2025-06-05  1

index.php

$args = array(
 'posts_per_page' => 5,
 'orderby' => 'post_date',
 'order' => 'DESC',
 'post_type' => array('car', 'bus', 'boat'), //plugin pods
);
$query = new WP_Query($args);
while($query->have_posts()) {
  $query->the_post();
  echo '<a href="' . get_permalink(get_the_ID()) . '">'
   .get_the_title()
   ."</a>";
 }

1) (and dot/car2, dot/bus1…) and

This works.

2) (and dot/transport/car2, dot/transport/bus1…) and

This doesn’t work: 404 error.

I have tried “transport” here: (Categories) wp-admin/edit-tags.php?taxonomy=category and also here: (Permalinks) wp-admin/options-permalink.php /%category% but it doens’t work

Ex. This does work: and

OR and

This does not work:

OR and

Anyone know?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749136225a316666.html

最新回复(0)