What is the action or filter for changing permalink in Edit Post/Page?

You can use the the_permalink filter to modify permalinks. Take a look at the function reference for the same. Code sample from the docs: Append the query string for the current page to permalink URLs function append_query_string($url) { return add_query_arg($_GET, $url); } add_filter(‘the_permalink’, ‘append_query_string’); More information on permalinks: Here (StackOverflow) Here (Elegant Themes) And here … Read more

How to assign a Permalink to a Function

Create an endpoint. That is a custom URL that will be handled by a callback. Examples are How can I use WordPress functions in my stylesheet? and Is it possible to request several post types from a feed?. See also add_rewrite_endpoint() and A (Mostly) Complete Guide to the WordPress Rewrite API.

WordPress 403 issue when passing parameters in the URL

This error is generated by the Cerber Security Plugin. You can add an exception on ‘Antispam’ under the WP Cerber menu, ‘Adjust Antispam engine’, ‘Query whitelist’. You probably want {\/contact-us\?enquiry_type=\d+} for a regular expression to match any numeric enquiry_type value. The relevant documentation is here: Configuring exceptions for the antispam engine.

htaccess or redirect to cloak portion of a link?

What you need to do is set up a custom rewrite. This can change something like http://site.com/rotate/1 to http://site.com/wp-content/plugins/ad-rotating-plugin/rotate.php?trackerid=1 Here is some untested code that might help: <?php /* Plugin Name: Your Plugin Plugin URI: Description: Version: 0.1 Author: Author URI: */ // Add rewrite rule and flush on plugin activation register_activation_hook( __FILE__, ‘ad_rotate_activate’ ); … Read more

Add %taxonomy% in custom permalink structure

There’s an array option when creating a custom post type and custom taxonomy for “”rewrite”” and you can set a “”slug”” and it’s there that you can change your permalink structure. For more read here. Also the other option that I get from post 1 and post 2 one helped me blink some idea. 1 … Read more

How to increase the character limit for post name of 200?

It happens because when you save a post, WordPress calls sanitize_title function to sanitize your title. This function applies sanitize_title filter. One of core hooks for sanitize_title filter is sanitize_title_with_dashes function, which checks title on utf8 format by calling seems_utf8 function and if the title has utf8 format, the function call utf8_uri_encode function. utf8_uri_encode function … Read more

Nice RSS Feed URLs for each custom post type

If you set ‘has_archive’ => TRUE in register_post_type() the post type will have its own feed on /books/feed/ and its items are not included in the main feed. Example plugin <?php /* Plugin Name: WPSE13006 feed for CPT demo */ ! defined( ‘ABSPATH’ ) and exit; add_action( ‘init’, ‘wpse13006_register’ ); // Call wp-admin/options-permalink.php once after … Read more

Turn off %postname% auto-incrementing?

Hi @Thompson: Unfortunately the post name must be unique for a given post type, and hierarchy level if the post type is hierarchical. There are a couple ways to address this: Use /%post_id%-%postname%/ instead of /%post_id%/%postname%/; that makes it unique and thus won’t append any annoying -Ns to the end of your URLs and will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)