With some help I was able to get it working with this:
add_action('init', 'journal_urls');
function journal_urls() {
add_rewrite_rule(
'^journal/([^/]*)$',
'index.php?name=$matches[1]',
'top'
);
}
Maybe someone can benefit from this in the future.
Related Posts:
- Where is the old post permalink slug stored?
- How to Check if a Page Exists by URL?
- Post slugs and images cannot have same name?
- Change the Slug of Post Type post to baseurl/post/%postname%
- Pretty URL with add_query_var
- get_permalink returns default link
- Group Posts by First Letter of Title
- How to control which category will be picked for the slug of a post?
- how to get permalink using sql
- Change slug with custom field
- Why can posts never have a number as the link?
- How to allow slashes in single posts when i click in the edit permalink button
- Post custom permalink results in 404 for archive page
- Some posts returning 404 instead of displaying post
- Custom post type single (permalink) throws a 404 error
- What Defines What Category A Post Picks (if in multiple)
- get_permalink executes link without https
- Custom post type permalinks breaking due to 3.1 bug fix
- How can a guest view the “Pending Review” Post?
- Create pretty permalink for a post knowing the permalink structure
- Changing my permalink structure – will new layout conflict with existing page?
- Link post permalinks to subdirectory /post
- change default post archive page link
- Remove permalink from images when inserting into post
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Bulk update post slugs through database
- Plain permalinks not working!
- How to change permalink on post click on post listing page
- Changing Permalinks for Default Post type to reflect navigation
- How should I add links to other pages/posts from my post?
- WordPress not opening posts with only numbers if permalink is post_name
- Using permalinks, category slugs, and tag slugs
- Problem with permalink routing?
- How to check a post exist when the permalink has post id in it?
- After database migration, posts not showing up in dashboard
- How to do set post permalinks using 6 digit random unique function?
- Switch to page template when using post permalink
- How to handle broken links created by permalink/slug changes?
- Visting slug for ‘post’ post type shows 404 not archive?
- Any way for get_next_post() to use the actual post order instead of publish order?
- Retrieve post ID from “querying” URL
- hiding permalink in admin if the user is subscriber
- Why does WP_Post not contain its permalink?
- the_permalink() not working in a root installation
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- Second get_permalink inside loop points to wrong URL
- Custom Permalink Structure for Pages & Posts
- custom word in custom permalink structure
- Updating permalink structure using ‘post_link’ filter results in 404 error for posts
- Post is blank when I click on the link
- Custom permalink for each post
- Post/page title to permalink transformation – what is behind the scenes?
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- Making posts permalinks consistent numbers
- Can Permalink structure of %postname%/%post_id% improve performance
- How to link post titles on page A to its posts on page B?
- Standalone form does not post to the url when form fields are populated (otherwise it does)
- Changing permalink of WordPress
- Set Default Post as Parent Child (Nested) Relation
- How can I add random alphabets in wordpress permalink posts structure
- Change permalinks for posts & for custom post types
- Remove subcategory slug from url
- Can I show category name in url for only one of my categories?
- Please help a newbie with blog page issue?
- My post permalinks are redirecting to the post archive page for some reason?
- How can I make a post sub link?
- How do you change the permalink for posts for a single category?
- Private post caught in endless redirect loop
- WP posts using index.php instead of single.php
- How to add a ‘News’ section to specific posts in WordPress
- unable to display two post per page in wordpress front-page.php
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Add a url parameter to the current post and read it in a shortcode
- How can I set the permalink of an article / page equal to the permalink of an existing article / page?
- How to add category base prefix to wordpress permalink
- Permalink base only for posts
- Change the URL of posts by category
- Point users to a specific url directory for some posts
- Precedence of page permalinks over woocommerce product category links?
- Fixing the WP Post Object for Custom Route
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- Use a custom post URL that is outside the blog root directory
- Change link to permalink inside post content
- One of my posts is displayed as page
- Modifying the permalink href for posts with jquery
- TCPDF and permalinks
- WordPress sub-posts and permalinks
- How to display subcategory articles in the category view?
- Change posts URL [duplicate]
- How can we pass a value from the_permalink() at WordPress?
- Default post type doesn’t display in url
- How to change Permalinks only for Blogposts
- Permalink structure for two separate blogs
- Blog posts are not appearing as subs of Blog Page
- How can I fixe the article title problem?
- How to add paraent in Blog post URL in wordpress
- Change permalinks in posts via SQL
- Modify Post URL Programmatically
- Custom permalink for ‘post’ not working
- Change the slug of post type using custom code