em_jay
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
The function get_queried_object returns the following:
On the page domain.com/en/startpage where it is working:
WP_Post Object ( [ID] => 6 [post_author] => 1 [post_date] => 2016-10-28 16:39:54 [post_date_gmt] => 2016-10-28 14:39:54 [post_content] => [post_title] => Startpage [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => startpage [to_ping] => [pinged] => [post_modified] => 2016-11-05 21:58:58 [post_modified_gmt] => 2016-11-05 20:58:58 [post_content_filtered] => [post_parent] => 0 [guid] => https://domain.com/?page_id=6 [menu_order] => 1 [post_type] => page [post_mime_type] => [comment_count] => 0 [filter] => raw )
On the page domain.com/en/ where it is not working:
WP_Term Object ( [term_id] => 6 [name] => English [slug] => en [term_group] => 0 [term_taxonomy_id] => 6 [taxonomy] => language [description] => a:3:{s:6:"locale";s:5:"en_EN";s:3:"rtl";i:0;s:9:"flag_code";s:2:"en";} [parent] => 0 [count] => 42 [filter] => raw )
- This reply was modified 8 years, 4 months ago by em_jay.
Forum: Plugins
In reply to: [Polylang] domain.tld/en/ shows empty pageOk, now it’s the following:
domain.tld – redirects to -> domain.tld/en/
domain.tld/en/home/ – redirects also to -> domain.tld/en/But why isn’t it working the other way around?
domain.tld – redirects to -> domain.tld/en/home/
but domain.tld/en/ – doesn’t redirect to -> domain.tld/en/home.
I would prefer the behaviour which is buggy at the moment.
Do you have an idea what is causing this and how to fix this?
Thanks, mj
Viewing 3 replies - 1 through 3 (of 3 total)