Changing url of author page

I have author page on my website: https://inwestujfinanse.pl/author/admin/ when I try to change it normally in https://inwestujfinanse.pl/wp-admin/profile.php nothing happens. Is there any way I can change it in the database or something? I don't want to install any additional plugin. Please help me.
Category: Web

Per Page Permalink Structure for Page Post Type

I am trying to Re-Write Page URL's so that they END with .htm I was able to do this using... /* Add .htm extension to Page URL Links */ add_action('init', 'htm_page_permalink', -1); function htm_page_permalink() { global $wp_rewrite; if ( !strpos($wp_rewrite->get_page_permastruct(), '.htm')){ $wp_rewrite->page_structure = $wp_rewrite->page_structure . '.htm'; } } /* Remove the trailing slash/ on Pages */ add_filter('user_trailingslashit', 'no_page_slash',66,2); function no_page_slash($string, $type){ global $wp_rewrite; if ($wp_rewrite->using_permalinks() && $wp_rewrite->use_trailing_slashes==true && $type == 'page'){ return untrailingslashit($string); }else{ return $string; } } But then …
Category: Web

Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?

Edited for clarity and to display steps we take to reproduce the issue. Question What would cause absolute URLs on our staging site to prepend the staging site's subdomain to them when saved in the editor? Summary We write pages manually in HTML and CSS on a staging site hosted on SiteGround, save our changes, then test them. However, when we save our work in the editor, they all prepend the staging subdomain we are writing on to each of …
Category: Web

Make the home page's slug visible in the browser's URL bar

Is it possible to show the WordPress home page slug visible in the URL bar? I mean when someone visits my WordPress website home page rather than displaying (considering that my website URL is website.com) "website.com" it must shows "website.com/home-slug" in the browser URL bar. Note: I am using a static page as the home page and my permalink uses "post-name". I am not looking for a way to hide the home slug but a way to make it visible …
Category: Web

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it's slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want to change the url of the news_category to news news . so url of news taxonomy would be: http://domain.com/news/press-release i tried to rewrite the slug news_category to news but that's creating conflict issue. news shows news url but all the posts of news post type are returning 404 not found News post's …
Category: Web

Change the default video URL in a post to shortcode format

I want to add video from youtube/vimeo to my post.Whenever i add a video to my post ,there will display a link like https://www.youtube.com/watch?v=dsUXAEzaC3Q in my admin(Add new post ),and in the front end it will display the video.But the problem is, i want to show the video like a shortcode example [video url=”https://www.youtube.com/watch?v=dsUXAEzaC3Q”][/video]in the place of original video.That is show the shortcode like above instead of the video in front end.How can it possible.Please help me.
Category: Web

change pagination url

Currently I’m having URL for pagination pages as: http://www.example.com/category_name/page/2 But I need to change this URL structure as: http://www.example.com/category_name/?page=2 etc. any solution?
Category: Web

What is an arbitrary URL?

I have created a plugin for wordpress but I don't understand what an "arbitrary URL" is. Here's what I've found: When installed, the plugin has to make a custom endpoint available on the site of WordPress. By "custom endpoint" we refer to an arbitrary URL not recognized by WP as a Standard URL, like a permalink or so. Please note that this is not a point of REST connection. When a visitor navigates to that endpoint, the plugin has to …
Category: Web

change default RSS feed URL

I need to change the default rss url of my website: from example.com/feed to example.com/MyfeedName Update: what i tried so far is to create another Url feed but i need to remove firstexample.com/feed: add_action( 'init', function() { add_feed( 'secretfeed', 'do_feed_rss2' ); }); add_action( 'pre_get_posts', function( \WP_Query $q ) { if( $q->is_feed( 'secretfeed' ) ) add_filter( 'option_rss_use_excerpt', '__return_false' ); } ); do you have any idea how to just edit example.com/feed or how to delete it without losing rss functions?
Category: Web

returning the currect URL for nested posts

I have a posttype called (article) witch have a meta_key called (parents_ids). So the article can be related to multiple articles. I want to return the currect URL depending on the parent post For example: 1-If the user click on the child-article comming from parent-article-1 i want the url to be example.com/parent-article-1/child-article. 2-If the user click on the child-article comming from parent-article-2 i want to return the url example.com/parent-article-2/child-article
Category: Web

Workaround for og:image unsupported webp image type, Yoast SEO?

My site Beta Fox uses Yoast SEO plugin to help deal with SEO common practices, however an issue has arisen. In beginning of last year WordPress didn't fully support webp image types, neither Yoast SEO. Things changed near the end of year, but Yoast SEO unbelievably refuses to support webp (the types Google is forcing upon on us to use). The problem is the fact there's no open graph for image attachments in any page of the site, so that …
Category: Web

Add %post_id% to slug of custom post type and prevent the "unique slug" thing that WP does?

I have a custom post type called "equipment". I would like the permalink structure to be: example.com/equipment/%post_id%-slug I specifically want it to use a dash and not a slash (i.e. - "id-slug" not "id/slug"). Every possible solution I've found from googling has used slashes and I just can't get it to work with a dash. I also want to prevent WordPress from adding on the additional number if there's two posts with the same title. Example: example.com/equipment/45-awesomeness and example.com/equipment/46-awesomeness-2 I …
Category: Web

How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes '&' to '#038;'?

I use a quick redirects plugin and it's changing my URLs after the fact and thereby breaking some of my links. I never want wordpress to change & to #038;. There is an unwanted solution to turn off all wp_texturize by placing: remove_filter('the_content', 'wptexturize'); I don't want to disable everything, just the & conversion in URLs. I can physically modify wp-includes/formatting.php by commenting out this line, but it didn't work: $content = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/i', '&$1', $content); I don't want to do …
Category: Web

The requested URL was not found only on localhost

I have moved WordPress files & database from localhost to live server successfully. However, now when I try to move it back to localhost the links doesn't work, although they should. I am using root-relative links in my hrefs as in: href="/about-us" I am using the plugin All in One WP Migration. Have tried the following: Multiple .wpress backup files from the plugin, Reinstalled XAMPP, Several different database names for local WP installation, Severeal different usernames for local WP installation, …
Category: Web

Why is $wp->request empty in Wordpress 6.0?

Trying to obtain the page url with the following code prior to Wordpress 6.0 works, but after update to Wordpress 6.0, $wp->request is coming through as an empty string on all pages. I have Post name set in permalinks under Common Settings if that matters. The code below no longer works for getting the current url in the browser: add_query_arg($wp->query_vars, $wp->request); If there a new way to obtain the current url in the browser with Wordpress 6.0? I would need …
Category: Web

How do I add a tag slug to a category URL to filter posts?

I want to add an option to my site to filter posts by one specific tag on the category page and at the same time have a nice URL (no query strings). So something like this: https://example.com/%category%/ - standard category link (currently) https://example.com/%category%/%tag%/ - a page like the above, but displaying posts from a specific category AND tag. Is this possible? If so, how can I achieve this? I would also like to note that for posts I have such …
Category: Web

Use Parent Pages for URL Structure without Landing Page

So this is more a philosophical question than anything, and if I'm asking this in the wrong place, I'm happy to remove the post: What's the best way to use a parent page for structure while keeping that page inaccessible to users? I'm running into two issues: First, I want to use the parent page in the main menu so that I can take advantage of WordPress's current-menu-parent and like classes for styling purposes. I know that normally you can …
Category: Web

Embed image in post from external url

Is there a way in Wordpress that I can embed an image to a post when I want to include it like this: <img src="....." /> So I want to add this manually. Is this possible? Now, I get the URL, without the image. So the embedding process isn't done. PS: I am using a front-end editor.
Category: Web

Previewing/Updating some Pages causes "The requested URL was rejected" Error

The wordpress site is suddenly having a problem where on some (not all) of the pages, when you click preview page or update changes it gives an error message: "The requested URL was rejected. If you think this is an error, please contact the webmaster. Your support ID is: 9641638102880218190" This can be circumvented by entering the preview url directly into the browser or clicking "open in new tab" when you click the preview button. However you cannot right click …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.