BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Single Use Custom Page Template (404 error)
- This topic has 4 replies, 2 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
March 24, 2016 at 4:13 pm #65086@
AnonymousI’ve developed a Single Use Custom Page Template and am receiving a 404 error when attempting to visit that specific page. However, it is inconsistent, at times it will load, but the majority of loads result in a 404 error. In making the Page Template I moved a copy of page.php to my child theme, and renamed the file page-classes.php. I also made a Classes page within WordPress.
Did I make a mistake of some sort? How can this be resolved?
It isn’t hosting related because I’m working locally and this is page specific. I’m pushing to a server weekly though in order for my client to view new content, so if you need access that can be accommodated.
Answers
March 26, 2016 at 9:26 am #65456@
AnonymousHi @ryanmaler
Please confirm are you using Page Attribute options for it or just using slug approach ( page-{slug}.php ) to display your page.<?php /* Template Name: Class Template */ ?>
Regards
Varun DubeyMarch 26, 2016 at 8:48 pm #65509@
Anonymous@vapvarun I’m using the slug approach being that it is for a specific, single page. Also, I currently have Boss 2.1.0 installed and the Child Theme active.
March 27, 2016 at 11:58 pm #65573@
AnonymousHi @ryanmaler
It seems, permalink need to be flushed.
Try following inside your child themefunction bb_flush_rewrite_rules() { flush_rewrite_rules(); } add_action( 'after_switch_theme', 'bb_flush_rewrite_rules' );
Regards
Varun DubeyMarch 30, 2016 at 2:28 pm #66123@
Anonymous@vapvarun I dropped that code snippet into my Child Theme’s functions.php and the error persists. Additionally, I emptied my browsers cache and the error remained.
- The question ‘Single Use Custom Page Template (404 error)’ is closed to new replies.