Where can I add list of external URL for WP ADD link tool?

if you install Betheme there is a add “shop slider” which lets you to list your products according you catagories. you dont need CVS file, or final link etc, allready you may change your final links later thus this way may give you extra job effort. however if you use betheme, you can just add … Read more

Rewrite rule taxonomy url with different values in one function

You can do that using a subpattern or capturing group like ([a-z]) in your rewrite rule’s regex (i.e. regular expression pattern, which is the 1st parameter for add_rewrite_rule()), and then use $matches[<n>] in your query (the 2nd parameter for add_rewrite_rule()), where <n> is a number (1 or above) and it’s the subpattern’s position number. Why … Read more

esc_url, esc_url_raw or sanitize_url?

This might be a more useful demonstration: <a href=”<?php echo esc_url( $url ); ?>>I’m printing a URL to the frontend</a> $url = sanitize_url( $_GET[‘user_inputted_data’] ); update_post_meta( $post_id, ‘that_url’, $url ); esc_url is an escaping function, sanitize_url is a sanitising function. Sanitising functions clean incoming data, e.g. removing letters from phone numbers, stripping trailing space etc. … Read more

Is it possible to use a post name in a custom post slug?

Rewrite is a global base for all posts under the custom post type. For example, this is the default CPT rewrite structure: example.com/lesson/%postname% In your code example, it’s implying you are trying to do: example.com/%postname%-lesson/%postname% Two issues with this idea. The first issue, assuming this functionality worked, is that your CPT urls would all be … Read more

How to add paraent in Blog post URL in wordpress

You can set this in your WordPress settings. Go to your Permalinks settings (WP Admin → Settings → Permalinks) and select ‘Custom Structure’. It should display your current structure in the text box next to it. Now, add /blogs in front of what is in the text box. And then Save. See screenshot for reference