• Resolved coyotito

    (@coyotito)


    When I edit the pages automatically created by WP Job Manager, changes are not saved at all. Even when previewing. All other pages I manually created are fine though.

    The pages with problems are Submit Job Form Page, Job Dashboard Page, Job Listings Page.

    I have disabled all plugins but the problem is still there.

    I shall appreciate your support.

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Not sure I see anything wrong with the page creation:

    $page_data = array(
    			'post_status'    => 'publish',
    			'post_type'      => 'page',
    			'post_author'    => 1,
    			'post_name'      => sanitize_title( $title ),
    			'post_title'     => $title,
    			'post_content'   => $content,
    			'post_parent'    => 0,
    			'comment_status' => 'closed'
    		);
    		$page_id = wp_insert_post( $page_data );

    This is the same code used in WooCommerce and I’ve never had a report of this there either.

    Just tested locally and I could edit. Could you enable the author box (https://glui.me/?i=8ywh76rigoldou5/2014-11-22_at_13.26.png/) and assign it to yourself. Perhaps the user ID 1 is assigning to a user with more permissions than yourself?

    Thread Starter coyotito

    (@coyotito)

    Thank you Mike.

    The thing is, I can open the page to edit only that changes aren’t saved.

    I noticed this because jobs in page with [jobs] are not shown the way they’re supposed to. It’s just showing the list like a blog and not with filters e.t.c.

    NOTE: I have tried to do as mentioned above but it didn’t work, Sir.

    Plugin Author Mike Jolley

    (@mikejolley)

    That doesn’t sound like a page edit, it sounds like you have a custom post type archive for jobs.

    Add some content to the page. If it doesn’t appear, but does save, you’ll know its no the page editing. Jobify adds custom post type support – maybe its not styling it as it should.

    Thread Starter coyotito

    (@coyotito)

    I don’t have a custom post type.
    Just installed wordpress and the new WP Job Manager and that’s it.
    I’m using Genesis Theme which works fine in a test site. In the test site, I installed WP Job Manager long before the auto page creation feature.

    I’ve just tried and it does save but doesn’t appear.

    I’m sorry to mention this but I can assure you it’s only for the three automatically created pages.

    When I create a new page with the [jobs], it shows fine without problem. But when I set the slug to “jobs” the error comes back. If the slug is something else out of the ones automatically created, it works fine.

    I shall appreciate your help, Mike.

    Plugin Author Mike Jolley

    (@mikejolley)

    Thats what I mean. ‘jobs’ will be the path to the custom post type archive (which should be disabled by default, unless some code or a theme changes it).

    Have you used a theme such as Jobify prior, or defined support for ‘job-manager-templates’ manually? Something has enabled it.

    If you change the slug of your jobs page, from jobs to job-2 for example, it will show, and /jobs/ will do the same thing as before.

    Thread Starter coyotito

    (@coyotito)

    Oh!! I had this in my theme’s functions.php

    //* Add Job Category Links
    add_theme_support( 'job-manager-templates' );

    I have removed the code and looks like I’m on my way to find a complete solution. Did that create something else I have to manually remove too?

    Coz that page now displays the contents of homepage with the slider. How do I have it display the way it’s supposed to? i.e [jobs] only.

    Thank you Mike.

    Thread Starter coyotito

    (@coyotito)

    HOORAY!!
    I resolved it. I removed add_theme_support( 'job-manager-templates' ); from functions.php then I went to WP Job Manager Settings >> Pages and SAVE again.

    It’s now working perfectly.

    Thank you, Mike.

    Plugin Author Mike Jolley

    (@mikejolley)

    Did you add that code for category archives or anything? Thats what its for – opening up post type archives, but it requires that you theme the new archives.

    Thread Starter coyotito

    (@coyotito)

    Yes Sir, I added it for that purpose.

    I wonder what should be the correct way to add job category archives. It’s not so important at least for now but shall greatly appreciate if there’s a good way to do that.

    Thank you, Mike.

    Plugin Author Mike Jolley

    (@mikejolley)

    You’d enable the above again, then create display templates for each archive. taxonomy-job_listing_category.php and archive-job_listing.php

    Thread Starter coyotito

    (@coyotito)

    Thank you, Mike.

    As it looks to be a tough thing to accomplish at least for now, I’ll work on it in a near future when I really need it.

    Once again, Thank you very much, Sir!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem with WP Job Manager Created Pages’ is closed to new replies.