I am looking for a way to get post_type in permalink wordpress structure - especially considering the custom post_type defined by my own plugin.
Is there an easy way to do this, or do you know any decent docs on handling / redirecting the wordpress url (the code seems to be missing some rewriting part).
It seems that if you use a permalink structure other than the default, then you will get a permalink / post_type / post_name structure.
So, if I registered post_type 'video', that would be http://yourdomain.com/video/post_name
, , , , ? id = 123 - . (, post_type query_var, .)
URL WP, , ... , .
post_type ? , , , Wordpress.
% category% - , . , wordpress codex , - , - :
% category% - name ( slug field New/Edit ). URI. % % .
EDIT. , post/page, . , , wp-includes\rewrite.php( Wordpress). , mod-rewrite, , ,
Source: https://habr.com/ru/post/1733548/More articles:counter_cache deprecated in after_create hook - ruby-on-railselements are imported even without namespace import - visual-studio-2008Passing structure pointer as parameter in C # - pointersAuto import import visual base spaces - c #Unit testing with complex directory structure - filesystemsPL / SQL Array for CLOB - arraysCode for reading oleObject files - javaHow to programmatically get a large iPad window at startup using MonoTouch? - cocoa-touchПочему указанный объект имеет право на сбор мусора? - javaСкриншот с помощью апплета Java - javaAll Articles