The function get_author_posts_url
retrieves the url where the posts of a certain author are to be found. If you change the url, that doesn’t mean the posts are moved.
In other words, you have moved a sign directing you to Buckingham Palace and expect that by doing so you also have relocated the palace. In effect, as you found out, you end up in the middle of nowhere.
Also beware that since you are modifying the existing filter author_link
, the modification will also apply to calls originating in other functions. If you want to apply a filter to a custom made function, it is better to define a custom named filter as well.
Related Posts:
- Get the blog page URL set in Options
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- How to set permalink structure via functions.php
- Different ways to display title
- How Do I Programmatically Force Custom Permalinks with My Theme?
- Different wordpress 404 template for different post type [duplicate]
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- Link won’t show using the_permalink();
- get_query_var() and permalinks
- WordPress 404 page returning with default in IIS7
- WordPress custom post type permalink: website.com/post-name/post-id
- paged > max_num_pages won’t throw 404
- WordPress Theme’s 404 File Getting Called Every Page Load?
- Filter categories used with Custom Structure Permalink
- How to make permalinks update from code?
- Default Permalink Type to Postname
- How to set a page as homepage in stead of the newspages?
- Getting author URL outside the loop
- I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php
- Issue On Displaying Pages with Post Name Permalink
- Issue on Getting Custom post type Thumbnail’s URL
- WordPress page/blog incorporated into static website
- Only the latest post shows up on post page?
- Twenty Twelve Author not displaying
- How to remove permalinks links presents in each page of my site?
- If I remove Category base from my URLs, how difficult will rollback be?
- What are the permalinks options for “Category” base and removing it?
- How do I open a post in a custom page in wordpress?
- Does single webpage do not need navigation to create a slug in permalink?
- Getting post URL within custom content template
- How to display latest posts with authors image
- I want to change the author name
- Detect error 404 page to find out the issue
- Mamp pro permalink issues. Pages keep reverting to index.php
- 404 on child page template
- Permalinks problem with custom theme
- Permalink Setting Changes From Post Name to Default After Changing The Page Name
- Configuring static page with add_rewrite_rule gives 404 after navigating to Permalinks admin panel
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- How to: Update live sites theme from version control repo via plugin or library? [closed]
- Adding items to page template dropdown on Page Edit Screen
- How to use logout function on custom menu link?
- Front End Post Submit Form
- Page attribute template dropdown not displayed even the syntax is correct
- How to add a text widget during theme activation
- WordPress Theme customisation CSS
- Why does this loop only work on the homepage?
- Nesting Functions within Functions
- Theme check: Missing a text-domain
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- How to determine if post has widget content?
- Custom Script Section Only Echoes Text
- Set multiple templates per post
- Place the page title into the short code
- Displaying recent post excerpts on static front page
- Moving local wordpress page to a real server subdomain broke my permalinks?
- approach to pass additional parameter in post URL
- Which html elements should be styled in wordpress theme
- WordPress Media Uploader in page template (On Front-end)
- Permalink Doesnt Work – URL Not Found
- 404 when going to /blog
- Theme Customizer not loading JS for live preview
- Replace function in a child theme
- get_search_form() and aria_label
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Change image size depending on page
- How to include a mu-plugin as a theme dependency?
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- How to use ajax in wordpress and sending the data without refreshing ?
- Adding an external link to product grid list pages for woocommerce
- What and where are the WordPress core-bundled scripts?
- Home page Pagination – Other pages do not redirect to home page template
- How does the loop know which post to view?
- How do I get from search_theme_directories() to the $stylesheet (name) for switch_theme()
- Tabbed theme options query about add_settings_section callback function
- How to know if I am on 1st page
- How to create a robust and logic class naming system in WordPress theme developing?
- I don’t know why categories are showing below post
- WordPress Custom font not found
- How do I control the header space in non-front pages in Twenty Seventeen?
- Target second from last post in loop
- Customizer API way function is_customize_preview() works only in main page?
- Advantages/Disadvantages Using Theme Editor Instead of Pages
- Magnific Popup – Add Caption to Images
- Why do WordPress developers use so many opening and closing PHP tags when developing themes? [duplicate]
- using theme check plugin to remove waring and errors from my theme
- paragraph format in WYSIWYG on a custom theme?
- unable to display the image meta value as background
- editor style css and page template with and without sidebar
- 3 x 3 grid of posts on the home page
- The normal loop with different styles doesn’t work in search.php
- Pass custom css class to add_menu_page
- How to force unlink on attached/inserted images?
- How to create sub-menu in “Allure Real Estate Theme for Placester”?
- Bootstrap 4 mobile menu not working for WordPress Development
- How do I send out an update for my custom wordpress theme?
- custom wordpress theme blog page always not showing the last two pages of the articles