jannnik
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Sorting job listingsHey,
thanks for your answers! I finally found a workaround for my problem: I don’t need any filters! But thanks for posting the reference to the job-manager function, this is the file where I found the solution.
WP Job Manager stores each query in transients. That means a query will be cached (in this case for 30 days). If I change one of the job listings via save_post, the cache will be flushed and the next query will contain the actual menu_order values.
I didn’t find a solution how to prevent loading queries from the transients and my workaround is to flush the cache by saving one of the posts by hand.
Forum: Plugins
In reply to: [WP Job Manager] Sorting job listingsHey, I still have problems: The jobs are sorted, but it looks like job manager caches the specific query.
I can change the order in the backend and the new order is visible in the backend list. But the new order is not visible in the frontend until I modify the shortcode a bit…
Forum: Plugins
In reply to: [WP Job Manager] Sort jobs manually or by job jypeHey, finally I found a solution:
add_filter( 'get_job_listings_query_args', 'custom_get_job_listings_query_args' ); function custom_get_job_listings_query_args( $args ) { if ( $args['orderby'] == 'menu_order' ) { $args['order'] = 'ASC'; $args['cache_results'] = false; } return $args; }When using the shortcode without filters, everything works fine. But when using the shortcode with filters the job manager plugin uses ajax to get the job list. I looks like a query is cached and if I change the order of my jobs, the order only changes on the “non-ajax”-job-lists. Any idea how to solve that problem?
Are any updates planned to add this feature?
Forum: Plugins
In reply to: [WP Job Manager] Sort jobs manually or by job jypeHey, thanks!
Could you explain how to sort the jobs by the meta_value “menu_order”? Each job has now a value at the column “menu_order”, but orderby=”menu_order” in the [jobs] shortcode does’nt work.
Forum: Plugins
In reply to: [WP Job Manager] Sorting job listingsHey, I tried sorting my job listings for hours – without finding a working solution. Could you explain how you solved it?
I use a plugin to set the menu_order of each job listing. The jobs are sorted by menu order in the wordpress backend, but in the job-list from the shortcode it does not work properly.
Forum: Plugins
In reply to: [WP Job Manager] Sort jobs manually or by job jypeHey Mike, user friendliness is not much important because I have only 10-15 job listings and I need this feature badly.
Could you explain how to order the job listings by a custom field?
My second requirement is to group the jobs by category in the job list. Is this possible?
Forum: Plugins
In reply to: [WP Job Manager] Sort jobs manually or by job jypeWhat a pity 🙁 Do you have an idea how I could realize manual ordering?
Thanks! I am also very interested in alpha and beta versions.
Yes!
Oh, I see that I can add the category pages there, you are right 🙂
But when I open a category page, the menu entry will not be highlighted (has not the current-menu-item class). How can I add the highlighting for the category page and the events from this category?I realized that I can access these pages from the “categories page”, but how can I add these pages to the menu?
By the way: When I asked this question, the single category pages did not work because there is a bug with WPML and Events manager. I disabled WPML and now it works.
Hi, I have exactly the same problem and need a solution for this. If an event page is opened, the menu item of the event’s category should be selected! I tried some plugins and a custom menu walker, but I did not found a really good solution 🙁
But I also have another problem which you don’t have on your site:
How did you created the submenu entrys for each event category?Forum: Plugins
In reply to: [WP Job Manager] Plugin template path.But there is a problem again. It seems like this filter only filters the “job-filters”-templates, but not the “content”-templates. (I use the [jobs] shortcode). Could you test my filter and find the reason why it does not work as expected?
Forum: Plugins
In reply to: [WP Job Manager] Plugin template path.Finally, I got it to work with this filter (it tries to load each template from my plugin’s folder, but if there is no custom template, it will use the original one.)
add_filter( 'job_manager_locate_template', 'custom_job_manager_locate_template', 10, 3 ); function custom_job_manager_locate_template( $template, $template_name, $template_path ) { $plugin_path = dirname(__FILE__) . '/templates/' . $template_name; if (file_exists($plugin_path)) return $plugin_path; else return $template; }