Tagged: x
-
AuthorPosts
-
November 20, 2016 at 1:21 am #1264073
Hello There,
When I try to log in to your WP dashboard, I always get this screen:
http://prntscr.com/d9hyabPlease temporarily disable it so that we can log in.
November 20, 2016 at 12:01 pm #1264410It should be disabled now, sorry about that!
November 20, 2016 at 5:08 pm #1264610Hi 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!
November 29, 2016 at 3:59 pm #1275202Hi 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! :)”
November 30, 2016 at 1:12 pm #1276380Hi 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!
December 5, 2016 at 10:19 am #1281751Hi 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.
December 5, 2016 at 10:23 am #1281766I 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.
December 7, 2016 at 1:24 pm #1284985Hi 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!
December 7, 2016 at 7:11 pm #1285411I’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!
December 8, 2016 at 12:05 am #1285686I 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!
December 8, 2016 at 12:08 am #1285688Hi 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!
-
AuthorPosts