403 forbidden on one page only

Does the folder ‘biljke’ exist on the server by any chance?? i.e. do you have wp-admin, wp-content, wp-includes AND biljke as folders in your WordPress root? [Reposted as an answer so it can be accepted, probably should have done that in the first place without trying to comment!]

how to change a theme slug

For a theme name Hello World a search and replace should be done in phases. Make sure you do a case sensitive search and replace. Replace Hello World with Example Name Replace hello-world with example-name Replace hello_world with example_name Modify theme folder name Look for any other namespaces that the theme uses and replace accordingly. … Read more

Change settings of get_post_type_object

since WP 4.4.0, you can use this filter that allows you to change the arguments used in the original cpt registration. Add this to your functions.php file: add_filter( ‘register_post_type_args’, function( $args, $post_type ) { if( ‘wyde_portfolio’ === $post_type && is_array( $args ) ) $args[‘rewrite’][‘with_front’] = false; return $args; }, 99, 2 ); It’s taken from … Read more

Do post_names have to be unique?

Slugs need to be unique-ish. The function that determines what a slug will be is called, appropriately enough, wp_unique_post_slug. Attachment slugs need to be unique across the whole set of slugs. Meaning that they cannot be shared with anybody, anywhere. Page slugs (or any hierarchical post type) needs to be unique within that specific post … Read more

How can I automatically set a post slug based on the post title during post publish?

As long as haven’t touched the slug WordPress will generate a new one after you entered a title. Update To change other peoples slugs use a filter (not tested!): add_filter( ‘wp_insert_post_data’, ‘prevent_numeric_slugs’, 10, 1 ); function prevent_numeric_slugs( $post_data ) { if ( ! isset ( $post_data[‘post_title’] ) or ! is_numeric( $post_data[‘post_name’] ) ) { // … Read more

Define a name to the posts slug

Set your permalink structure to custom and use: /post/%postname%/ Then when registering your custom post types use something like this: ‘rewrite’ => array( ‘slug’ => ‘something’, ‘with_front’ => false ), Using with_front set to false will make sure that your new custom post types don’t share the /post/ part of your permalink structure

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