Title: 404 When Editing Posts
Last modified: August 19, 2016

---

# 404 When Editing Posts

 *  Resolved [mrtoner](https://wordpress.org/support/users/mrtoner/)
 * (@mrtoner)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/404-when-editing-posts/)
 * I’m using Yinjie Soon’s [DF-Style Linked List plugin](http://github.com/yjsoon/df-style-linked-list_wordpress-plugin).
   Rather than modifying the theme I’m using, I’m using separate code to change 
   the behavior of the links on my post titles:
 *     ```
       add_filter('post_link','df_fix_permalink');
   
       function df_fix_permalink () {
         if (get_the_linked_list_link() == '') {
           return get_permalink();
         }
         else {
           return get_the_linked_list_link();
         }
       }
       ```
   
 * This works fine: for posts with a linked_list_url it changes the post title link
   to that URL. However, attempts to edit the post now end up in a 404. To edit 
   a post, I must comment out add_filter().
 * Any suggestions to fix this?

Viewing 1 replies (of 1 total)

 *  Thread Starter [mrtoner](https://wordpress.org/support/users/mrtoner/)
 * (@mrtoner)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/404-when-editing-posts/#post-1798680)
 * Based on an example [here](http://b-12.blogspot.com/2009/03/wordpress-change-title-post-to-external.html)
   I was able to solve the problem:
 *     ```
       add_filter('post_link','df_fix_permalink');
   
       function df_fix_permalink ($permalink) {
         if (get_the_linked_list_link() == '') {
           return $permalink;
         }
         return get_the_linked_list_link();
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘404 When Editing Posts’ is closed to new replies.

## Tags

 * [add_filter](https://wordpress.org/support/topic-tag/add_filter/)
 * [get_permalink](https://wordpress.org/support/topic-tag/get_permalink/)
 * [post_link](https://wordpress.org/support/topic-tag/post_link/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [mrtoner](https://wordpress.org/support/users/mrtoner/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/404-when-editing-posts/#post-1798680)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
