theas91
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Change order by custom fieldThank you! I didn’t add the new code but now it is suddenly in the right order ?? so I guess it worked
Forum: Plugins
In reply to: [WP Store Locator] Change order by custom fieldAha, that is probably what I am doing wrong then, I want to also affect the initial load ??
Forum: Plugins
In reply to: [WP Store Locator] Change order by custom fieldHi! Here is the code i have added to functions.php
/* ADD TRENINGSROM AND ORDER TO STORE */ add_filter( 'wpsl_meta_box_fields', 'custom_meta_box_fields' ); function custom_meta_box_fields( $meta_fields ) { $meta_fields[__( 'Additional Information', 'wpsl' )] = array( 'phone' => array( 'label' => __( 'Tel', 'wpsl' ) ), 'fax' => array( 'label' => __( 'Fax', 'wpsl' ) ), 'email' => array( 'label' => __( 'Email', 'wpsl' ) ), 'url' => array( 'label' => __( 'Url', 'wpsl' ) ), 'treningsrom' => array( 'label' => __( 'treningsrom', 'wpsl' ) ), 'order' => array( 'label' => __( 'order', 'wpsl' ) ) ); return $meta_fields; } add_filter( 'wpsl_frontend_meta_fields', 'custom_frontend_meta_fields' ); function custom_frontend_meta_fields( $store_fields ) { $store_fields['wpsl_treningsrom'] = array( 'name' => 'treningsrom', 'type' => 'text' ); $store_fields['wpsl_order'] = array( 'name' => 'order', 'type' => 'text' ); return $store_fields; }
/* ADD ORDER TO SORTING*/ add_filter( 'wpsl_store_data', 'custom_result_sort' ); function custom_result_sort( $store_meta ) { $custom_sort = array(); foreach ( $store_meta as $key => $row ) { $custom_sort[$key] = $row['order']; } array_multisort( $custom_sort, SORT_ASC, SORT_NATURAL|SORT_FLAG_CASE, $store_meta ); return $store_meta; }
Forum: Plugins
In reply to: [WP Store Locator] Sort by category with titleHi! Thanks so much! I was able to show the category underneath the address, and sort them in the right order. Only seems to be working when logged in for now, but probably a cache issue.
I can’t seem to figure out how to show the category name above the results though, so let me know when you’ve figured something out!
Forum: Plugins
In reply to: [WP Store Locator] All stores showing except oneOk so I added a “test” with the same address and i showed up. When I changed the name to “Fredrikstad”, and added a URL it dissapeared
- This reply was modified 2 years, 7 months ago by theas91.
Forum: Plugins
In reply to: [WP Store Locator] All stores showing except oneHi! Thanks for the reply. I tried re-adding the store, the coordinates are showing and working, but the store is still not showing up. Any idea why?
Forum: Plugins
In reply to: [WP Store Locator] All stores showing except oneAlso, another type of question, but I’m trying to make the entire box when you click on a pin black, but it has some kind of padding that is staying white no matter what I try. Where in the CSS can I fix this? Thanks!
Forum: Fixing WordPress
In reply to: Adding new post field to front endAnyone? I know Im probably just missing a small thing! ??
Edit, this is the page now if anyone can help! thanks!
Forum: Plugins
In reply to: [WP Job Manager] RSS feed / automatically find location and employerHi! Me again, I’m bumping this as I’m still trying to find a solution to this problem.
This is my RSS feed: https://www.webcruiter.no/webservices/webcruiterculture.asmx/RSSFeed?company_id=55465&cultureid=&Collections=1,2,3,4,5,6,7,8&xmlversion=version2&link_source_id=0
when I press view source on that page, I can see the empolyer and place for each position. These are:<wc:company_name>Assessit p? uppdrag av kund</wc:company_name>
<wc:WorkplacePostaddress>Stockholm</wc:WorkplacePostaddress>Is there anything I can do to help job board automatically find these for each position and fill them in? Right now the place just comes up as “wherever” and there is no employer. I’m not sure if it’s even possible but it would be GREAT if you could help! We are willing to pay for customization if that is what is needed!
Forum: Plugins
In reply to: [WP Job Manager] Automatically adding /target= behind external links??I tried disabling all my plugins, but it’s still adding the annoying target= behind the link. This time I’m not even using page links to, I’m just posting a job from within the site via the job manager. This time it’s the top ‘boligbygg’ position
Forum: Plugins
In reply to: [WP Job Manager] RSS feed / automatically find location and employerHi! I see that you’ve posted code on github that I’m going to try, but just one question so I don’t mess everything up.. where do I put it? In an existing plugin file or a new one? Thank you so much!!
Forum: Fixing WordPress
In reply to: Sharing blog on facebook- wrong imageThis one: Facebook Featured Image and Open Graph Meta Tags
Forum: Fixing WordPress
In reply to: Sharing blog on facebook- wrong imageYes, when posting the link to the blog into facebook, not just a single post
Forum: Plugins
In reply to: [WP Job Manager] RSS feed / automatically find location and employerWell the whole point is to get job positions from the RSS feed and import them into job manager to put them in the correct table format. I might not have done it in the best way, but that is the only way I got the job positions to be displayed in the correct format.
so feedWordpress automatically imports the jobs from the RSS feed and imports them into wordpress, and then job manager displays them in the correct way and links them back to the original place. But when the jobs are imported with feedWordpress, they won’t automatically display on the website unless I go in and manually add place and company.