Tag Info

New answers tagged

1

I'd add 'has_archive' => true to your arguments array. That turns on archives automatically (with pagination too) for your post type. The template for the post type archive is archive-news.php. Edit For the editable text (sorry, missed the last paragraph), I would either use an option field or a custom sidebar (w/ text widget, I suppose). The amount of ...


2

Have you repub'd your permalinks? This will update the .htaccess file to ensure that routing works appropriately.


0

The rewrite value actually comes before your post slug, so you need to visit localhost/wp/realizzazioni/{{POST_SLUG}} to view the post. If your new post's name is "Test" you should be able to view the post at localhost/wp/realizzazioni/test. Other tips: Make sure there isn't a page already using the realizzazioni slug. Finally, flush your permalinks by ...


1

No it's not a bug. Pages are effectively a Post Type and so is your Custom Post Type. So assuming you created a Page called news but then you declared a new CPT also called news then Wordpress can't determine which is correct. To explain this another way, if you were to create a page called news and then another one called news, the slug would be news2 but ...


1

My first guess would have been that the page was in the Trash, but you've said in the OP that it isn't. So... If you have access to your MySQL database, run this query: SELECT * FROM wp_posts WHERE post_name = 'page-title' That will return the post that's using the slug.


2

The page with page-title as the slug is still hanging out in the Trash. You will need to delete it there, or change it's slug if you are wanting page-title-2 to be able to become page-title.


1

Use get_term_link() to get the correct URL for a taxonomy term archive. $list .= "\n\t\t" . '<li><a href="'. get_term_link( $tag ) .'">'.$name.'</a></li>';



Top 50 recent answers are included