How to make “virtual” translation with polylang installed (but without Polylang)

You can disable the translate of your cpt in polylang and use translated pages to display your cpt posts. In your page template, detect if the current language is english and use your custom translation code to display those translated fields. I want an URL like : www.domainame.com/en/ You can set it up in the … Read more

How I can make category url

It sounds like you may be running into duplicate slugs. In a basic install I tried to create a Page with the URL example.com/category/ and that worked fine. My permalinks are set to example.com/category/categoryname/ for each individual category, and example.com/year/post-name/ for individual posts. You could either try changing your permalinks and removing /category/ from them … Read more

wp_get_nav_menu_items doesn’t return custom post type item

I fixed the problem by putting classes init in a wordpress hook wp_loaded as: function instantiate_class() { FP_Nav(); FP_Router(); } add_action( ‘wp_loaded’, ‘instantiate_class’, 100 ); which is before the do_parse_request action and after my CPT init in the hook init. I don’t know if it is the best way to handle this but it works … Read more