Get parameters and custom page template
I found where problem was – i can’t set other year. All i needed to do is to rename year parameter to something else – for example my_year.
I found where problem was – i can’t set other year. All i needed to do is to rename year parameter to something else – for example my_year.
I’m assuming you’re referring to: get_template_directory() get_template_directory_uri() get_template_directory() is an absolute path – so if you’re including a PHP file that is in your template directory this would be a good function to use. If you’re using a child theme and need to reference something in the parent theme you could also use this function. … Read more
Force WordPress to only match URL in category
If you cannot write codes: There is a Plugin MDC Target Blank, that’ll solve the issue. When someone clicks on a link (or an image that is hyperlinked), it’ll force to open in a new tab. It adds target=”_blank” to a tags. Older versions of this plugin had a bug, that’s fixed in new versions. … Read more
your theme will have certain templates, that will render pages in certain ways. see template hierachy , you could remove these (the default behaviour is to then resort to index.php, from their you could add some redirect rules for any mention of ‘tag’ or ‘category’ to redirect to another page. This could, though, ruin your … Read more
You might want to taker a look at add_rewrite_rule or add_rewrite_endpoint. Then to test, install a plugin called Monkeyman Rewrite Analyzer, it’ll help you show you if your rules are conflicting.
Found the solution after i posted the question: i need to disable directory browsing. Just put: Options -Indexes in .htaccess and it’s done.
Any way to make Apache’s internal redirect work?
Make sure you have the Text / HTML tab selected when you input HTML, not the Visual tab.
To get URL like www.example.com/lp/time-cost/free-trial you need to create parent child pages. Create lp as parent page Create time-cost as child page of above (lp page) Create free-trial as child page of (time-cost) page Then if you access free-trial page you will get the URL like you want.