WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Job Manager] Changing the default jobs directory? (3 posts)

  1. jamiebrwr
    Member
    Posted 4 years ago #

    Hello really love this plugin and I'm really wanting to use it but I'm having trouble with changing the Jobman default directory. The default url in the Job Manager is as follows for me:

    http://website.com/~client/wordpress/ [AddYourPageName]

    When I first installed it defaulted to:

    http://website.com/~client/wordpress/ [jobs]

    I've created my own page where I want to display the jobman plugin and it's a subdirectory to "About Us" page.

    http://website.com/~client/wordpress/about-us/career-opportunities

    I had this working by entering [about-us/career-opportunities] in the text box of the URL Path. I recently upgraded the plugin and that method stopped working for me. Now it keeps removing the slash between the two directories when I click the update settings button. I also tried opening and editing jobman-conf.php. I was editing the code between lines 105 & 113. The default code looked like:

    `$root = get_page($options['main_page']);
    if($structure == '') {
    $url_before = get_option('home') . '/?p=' . $root->ID;
    $url_after = '';
    }
    else {
    $url_before = get_option('home') . '/';
    $url_after = '/';
    }`

    I changed it to:

    `$root = get_page($options['main_page']);
    if($structure == '') {
    $url_before = get_option('home') . '/?p=' . $root->ID;
    $url_after = '';
    }
    else {
    $url_before = get_option('home') . '/about-us/';
    $url_after = '/';
    }`

    This updates the URL Path in the Job Manager settings so it reads:

    http://website.com/~client/wordpress/about-us/ [career-opportunities]

    but it still won't work when I go to that page nothing is there? Feeling kinda lost with it :( I would appreciate any help I can get with this issue. Thanks Again!

    http://wordpress.org/extend/plugins/job-manager/

  2. Gary Pendergast
    Member
    Posted 4 years ago #

    This should work again if you install the latest version.

    You'll now see a 'Jobs' page in your list of Pages. this is the root page for Job Manager, you can manipulate it as you would any other page.

    So, to do what you want, you should:
    - Change the title from 'Jobs' to 'Career Opportunities'.
    - Change the slug from 'jobs' to 'career-opportunities'.
    - Change the Parent from 'Main Page' to 'About Us'.

    Please let me know how this goes, or if you run into any further issues.

  3. jamiebrwr
    Member
    Posted 4 years ago #

    Thanks a lot pento that solved my issue! I've got it up and running now WOO HOO!

Topic Closed

This topic has been closed to new replies.

About this Topic