Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1264073

    Rue Nel
    Moderator

    Hello There,

    When I try to log in to your WP dashboard, I always get this screen:
    http://prntscr.com/d9hyab

    Please temporarily disable it so that we can log in.

    #1264410

    mikecallaway
    Participant

    It should be disabled now, sorry about that!

    #1264610

    Rad
    Moderator

    Hi there,

    Your job categories have no view capability. If you’ll check Admin > Posts > Categories and hover any category, you’ll see view option. But if you’ll check Admin > Job Listings > Job Categories, all the items has no view option.

    This mean that your job taxonomies aren’t made for viewing. You should contact the plugin author for accurate answer as I’m not sure how they implemented their taxonomies.

    Thanks!

    #1275202

    mikecallaway
    Participant

    Hi Rad! WPJM just got back with me. Here is what they had to say:

    “Mike,

    I poked around with their code but couldn’t quite figure out where they were adding that link and how. I’d suggest going back to them and telling them that the correct structure for a link to jobs in only one category is like so:

    site URL + jobs page slug + query string “search_category” which equals the category ID number

    Sounds complicated, but should be easy to do in code. An example for them is:

    http://www.polk.work/jobs/?search_category=72

    That link takes you to the jobs page with all Construction jobs shown, nothing else. They’ll need to change their code to use that format before it’ll work.

    Hope that helps! :)”

    #1276380

    Rad
    Moderator

    Hi there,

    But X theme has no code as such, it doesn’t change any permalinks structure like as for category search URL. Could they point out what coding?

    But how this is related to the main issue? I thought the issue is displaying the category page which uses https://developer.wordpress.org/reference/functions/get_term_link/. And it’s part of WordPress standard, there is no way we’ll change WordPress’s coding. It’s the theme or plugin that should adapt to WordPress standard.

    Thanks!

    #1281751

    mikecallaway
    Participant

    Hi Rad! I just heard back from WPJM. This is their reply:

    > But X theme has no code as such, it doesn’t change any permalinks structure like as for category search URL. Could they point out what coding?

    The code I’m referring to is the code that the Themeco folks wrote for you when then said this:

    “I’ve just added the new code to this file: /public_html/wp-content/themes/x/framework/functions/renew.php around line 68-86.”

    The code they gave you doesn’t change the permalinks structure, he’s right on that point. But what it *does* do is assume the permalinks structure is one way, when in fact it is not.

    Our structure for a certain category of jobs is this:

    http://www.polk.work/jobs/?search_category=72

    … where 72 is the category ID number.

    I don’t expect them to change WordPress’ core code, I only hope they will change the custom code they gave you to point to the link structure above. It’s probably best for them to construct that link manually and *not* rely on the get_term_link function.

    #1281766

    mikecallaway
    Participant

    I also just noticed that the categories aren’t showing on resumes uploaded by the user either. Please let me know if I should open a separate ticket.

    #1284985

    Rad
    Moderator

    Hi there,

    Yes, please start a new thread for different issue 🙂

    About the first issue, then we can add get_term_link() filter. This should be done by WPJM plugin, they shouldn’t let theme and other plugins do the manual change in taxonomy URL. Because there is no way to predict what kind of URL the plugins are using or expecting. Most themes and plugins will use WordPress’s standard.

    Please add this code to your child theme’s functions.php

    add_filter('term_link', 'term_link_filter', 10, 3);
    
    function term_link_filter( $url, $term, $taxonomy ) {
       
        return ( $taxonomy == 'job_listing_category' ) ? 'http://www.polk.work/jobs/?search_category='.$term->term_id : $url;
       
    }

    Then you can simply still use get_term_link() without any further coding. And the editing of post meta code block might necessary to include this taxonomy, though I checked your job single page and it’s already there.

    Thanks!

    #1285411

    mikecallaway
    Participant

    I’ll open a new thread shortly. One more quick question…I’ve seen the term “child theme” is several different forums and thought I saw a tutorial on how to install it but can’t find it now. Every time I’ve tried to make a change to functions.php I end up breaking it, even with a plugin. Are you aware of such a tutorial so I can try to learn what I need to do?

    Many Thanks!

    #1285686

    mikecallaway
    Participant

    I was able to find the tutorial and add the child theme. The code is working now. I’ll open the new ticket to address the missing categories in uploaded resumes. Thank you so much for your help!

    #1285688

    Rad
    Moderator

    Hi there,

    Child theme is just a theme that you install just the other themes. What breaking is related to the coding standard of what’s not and should be. What you need to start with is debugging and troubleshooting, http://blog.teamtreehouse.com/how-to-debug-in-php and https://codex.wordpress.org/Debugging_in_WordPress. Through that, you’ll able to get the actual error, and based on that error, you can find many possible solutions 🙂

    Thanks!