Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)

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

How do I make images open in a new tab by default?

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

Modify the WordPress URL

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.

How to create URL for Pages/Posts

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.