Two sets of url one content?

You can create custom post type to manage your secondary content (multilanguage i suppose) and set these /fr/ your CPT rewrite base. Create a CPT function add this to your function. $rewrite = array( ‘slug’ => ‘fr’, ‘with_front’ => false, ‘pages’ => true, ‘feeds’ => true, ); After that set CPT rewrite option to rewrite … Read more

Limit wp_nav_menu_objects() only to first-level menu items

depth argument, available in functions attached to wp_nav_menu_objects hook, refers to the max depth of rendered menu (how many menu levels will be visible on site). To change only first-level elements, you can check in the loop if the menu item has a parent. function change_menu($items) { if( !is_front_page() ) { foreach($items as $item) { … Read more

How to fix automatic redirects?

Those aren’t really redirects, the “Hash” part of a URL (the # and anything after that) are purely client side and will not trigger another request to your server. The reason for it is AddThis. Here’s an explanation as to why they are doing that: What is AddThis Click Tracking? You can disable it by … Read more

Could not find the wordpress page

The page/post on WordPress aren’t storage on the filesystem (folders), they are saved on the DataBase, if you want to modify a page, you have to loging into your WordPress dashboard, and then visit the page and click on the top bar link to Edit Page, you can also go to your dashboard to the … Read more

WordPress admin page not found error

If you don’t have database access for some reason, you can also use // use these in your wp-config.php define( ‘WP_HOME’, ‘http://example.com’ ); define( ‘WP_SITEURL’, ‘http://example.com’ ); or // use these in your functions.php update_option( ‘siteurl’, ‘http://example.com’ ); update_option( ‘home’, ‘http://example.com’ ); to regain access to your site. You can read more about changing the … Read more