WordPress.org

Ready to get started?Download WordPress

Forums

Flutter
[resolved] Flutter New Page Not Working - Solved (3 posts)

  1. t.corbett
    Member
    Posted 4 years ago #

    When I was trying to add a new page it was just getting an error as if the page didn't even exists. That's becasue it didn't, I don't know if it used to in previous wordpress versions as I am fairly new to wordpress.

    Basically when you add a page type with custom fields etc. in flutter then you go to add a new page there is no page...

    You need to change the following line in xxxxxxx.php:
    sdfsdfsdfsdfsdfsdfsdf

    to:

    sdfasdfasdf

    This is because the page-new.php doesn't exist any more, wp must now just store pages as a type of post as it now goes to edit.php with the argument of post_type = page.

    Just thought I'd let you know in case anyone was having the same problem.

    Cheers,

    Tom

    http://wordpress.org/extend/plugins/fresh-page/

  2. t.corbett
    Member
    Posted 4 years ago #

    Whoops I forgot to include the actual solution...

    change from line 373 in RCCWP_Menu.php

    if($panel->single == 1){ //if the page is single
    						if($add_post){ //if the page is single and don't have any related post
    							add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'page-new.php?custom-write-panel-id=' . $panel->id);
    						}else{
    							add_submenu_page('post-new.php',__($panel->name),__($panel->name),8,'page.php?action=edit&post='.$has_posts);
    						}
    					}else{
    						add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'page-new.php?custom-write-panel-id=' . $panel->id);
    						add_submenu_page('edit.php', __($panel->name), __($panel->name), $requiredPagesCap, 'edit-pages.php?filter-posts=1&custom-write-panel-id=' . $panel->id);
    					}

    to:

    if($panel->single == 1){ //if the page is single
    						if($add_post){ //if the page is single and don't have any related post
    							add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'post.php?post_type=page&custom-write-panel-id=' . $panel->id);
    						}else{
    							add_submenu_page('post-new.php',__($panel->name),__($panel->name),8,'edit.php?post_type=page&post='.$has_posts);
    						}
    					}else{
    						add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'page-new.php?custom-write-panel-id=' . $panel->id);
    						add_submenu_page('edit.php', __($panel->name), __($panel->name), $requiredPagesCap, 'edit-pages.php?filter-posts=1&custom-write-panel-id=' . $panel->id);
    					}
  3. t.corbett
    Member
    Posted 4 years ago #

    Nope... wrong again lol, stupid that you can't edit your posts!! Unless I'm being stupid.

    it should be:

    if($panel->single == 1){ //if the page is single
    						if($add_post){ //if the page is single and don't have any related post
    							add_submenu_page($base+$offset.'.php', __($panel->name), $new_indicator_text, $requiredPagesCap, 'post-new.php?post_type=page&custom-write-panel-id=' . $panel->id);
    						}else{
    							add_submenu_page($base+$offset.'.php',__($panel->name),"Edit",$requiredPagesCap,'page.php?action=edit&post='.$has_posts);
    						}
    					}else{
    						add_submenu_page($base+$offset.'.php', __($panel->name), $new_indicator_text, $requiredPagesCap, 'post-new.php?post_type=page&custom-write-panel-id=' . $panel->id);
    						add_submenu_page($base+$offset.'.php', __($panel->name), $edit_indicator_text, $requiredPagesCap, 'edit-pages.php?filter-posts=1&custom-write-panel-id=' . $panel->id);
    					}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic