{"action":"created","issue":{"url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/47","repository_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions","labels_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/47/comments","events_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/47/events","html_url":"https://github.com/Astoundify/wp-job-manager-regions/issues/47","id":123611996,"number":47,"title":"Issue with \"Recent Jobs\" widget","user":{"login":"adamhurlebaus","id":8770691,"avatar_url":"https://avatars.githubusercontent.com/u/8770691?v=3","gravatar_id":"","url":"https://api.github.com/users/adamhurlebaus","html_url":"https://github.com/adamhurlebaus","followers_url":"https://api.github.com/users/adamhurlebaus/followers","following_url":"https://api.github.com/users/adamhurlebaus/following{/other_user}","gists_url":"https://api.github.com/users/adamhurlebaus/gists{/gist_id}","starred_url":"https://api.github.com/users/adamhurlebaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamhurlebaus/subscriptions","organizations_url":"https://api.github.com/users/adamhurlebaus/orgs","repos_url":"https://api.github.com/users/adamhurlebaus/repos","events_url":"https://api.github.com/users/adamhurlebaus/events{/privacy}","received_events_url":"https://api.github.com/users/adamhurlebaus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T07:08:28Z","updated_at":"2016-03-07T13:33:52Z","closed_at":"2016-03-07T13:33:52Z","body":"I've been having the same issue as listed [here](https://wordpress.org/support/topic/widget-not-working-properly?replies=12) where the styling is distorted in the recent jobs widget.  Specifically noted in the last reply is what happens to the widget.  This only occurs when the predefined regions plugin is activated.  \r\n\r\nI believe the reason is that [this line](https://github.com/Astoundify/wp-job-manager-regions/blob/master/includes/class-template.php#L108) uses [get_the_term_list](https://codex.wordpress.org/Function_Reference/get_the_term_list) which according to the documentation inserts anchor tags around every item it outputs.  That's exactly what's occurring in the recent jobs widget when this plugin is active.\r\n\r\nTo fix this, I removed the if/else portion on line 108 [see pull request](https://github.com/adamhurlebaus/wp-job-manager-regions/commit/24cbb7be3e7a3272c5bd59ff33bc64c37d17dd56) and completely excluded the check for \"is_singular\" and any code that might have executed as a result and the styling was not distorted in the widget.\r\n\r\nThat was a quick fix for me, but I think a more elegant solution is to only use the is_singular code listed above if the widget is not present on the page.  If you still believe the existing code is necessary for single pages, is it somehow possible to exclude the way the location is returned only to the widget, but still keep the same code for the full job listing?"},"comment":{"url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/comments/193249883","html_url":"https://github.com/Astoundify/wp-job-manager-regions/issues/47#issuecomment-193249883","issue_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/47","id":193249883,"user":{"login":"spencerfinnell","id":491124,"avatar_url":"https://avatars.githubusercontent.com/u/491124?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerfinnell","html_url":"https://github.com/spencerfinnell","followers_url":"https://api.github.com/users/spencerfinnell/followers","following_url":"https://api.github.com/users/spencerfinnell/following{/other_user}","gists_url":"https://api.github.com/users/spencerfinnell/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerfinnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerfinnell/subscriptions","organizations_url":"https://api.github.com/users/spencerfinnell/orgs","repos_url":"https://api.github.com/users/spencerfinnell/repos","events_url":"https://api.github.com/users/spencerfinnell/events{/privacy}","received_events_url":"https://api.github.com/users/spencerfinnell/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T13:33:52Z","updated_at":"2016-03-07T13:33:52Z","body":"This looks like it was worked around in WP Job Manager core."}}