Changeset 2714465
- Timestamp:
- 04/25/2022 04:11:26 PM (4 years ago)
- Location:
- wpjm-jooble-feed/trunk
- Files:
-
- 3 added
- 2 edited
-
class-wpjm-jooble-rss-feed.php (added)
-
languages (added)
-
languages/wpjmjooblefeed.pot (added)
-
readme.txt (modified) (3 diffs)
-
wpjm-jooble-feed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wpjm-jooble-feed/trunk/readme.txt
r2316970 r2714465 3 3 Contributors: npagazani 4 4 Tags: WP Job Manager, XML Feed, Jooble 5 Tested up to: 5.4.1 5 Requires at least: 4.7 6 Tested up to: 5.9.3 7 Requires PHP: 7.0 6 8 License: GPLv2+ 7 Stable tag: 1.09 Stable tag: 2.0 8 10 9 11 Creates a custom rss/xml feed for WP Job Manager compatible with Jooble feed requirements. 10 12 11 13 == Description == 12 This plugin generates a custom xml job feed that is compatible with Jooble.org\'s xml feed requirements for listing jobs on their site. 13 WP Job Manager\'s default job feed uses the standard WordPress RSS feed template which is not compatible with Jooble. This plugin solves that problem. 14 The plugin has no settings. Simply install the plugin and activate it, and then access your custom feed at yourdomain.com/feed/jooble 14 This plugin generates a custom xml job feed that is compatible with Jooble.org's xml feed requirements for listing jobs on their site. 15 WP Job Manager's default job feed uses the standard WordPress RSS feed template which is not compatible with Jooble. This plugin solves that problem. 16 The plugin has only one setting - the number of jobs to show in the feed. The minimum value is 1, the maximum is 250. After installing and activating the plugin, you can access the Jooble feed at yourdomain.com/feed/jooble 17 15 18 Note: This plugin requires WP Job Manager to be installed and activated to work properly. 16 19 … … 18 21 An activated install of the WP Job Manager plugin on your site is required for this plugin to work. You can download it here: https://wordpress.org/plugins/wp-job-manager/ 19 22 20 No further setup is required, just install and activate the plugin under Plugins > Add New to activate your customJooble compatible job feed.23 No further setup is required, just install and activate the plugin under Plugins > Add New to activate your Jooble compatible job feed. 21 24 22 25 == Frequently Asked Questions == 23 26 24 = Where are the plugin \'s settings? =25 There are none. Install and activate the plugin to create the custom feed.27 = Where are the plugin's settings? = 28 You'll find the only plugin setting in **Settings > Jooble RSS Feed**. 26 29 27 30 = How do I access the job feed? = 28 31 You can view the feed at yourdomain.com/feed/jooble 29 Make sure to replace \"yourdomain.com\" with your actual domain name.32 Make sure to replace "yourdomain.com" with your actual domain name. 30 33 31 34 = Why does my custom feed fail validation when using common online feed validators? = 32 Jooble \'s feed requirements do not use standard rss feed elements, so the custom feed will not pass on these validators.35 Jooble's feed requirements do not use standard rss feed elements, so the custom feed will not pass on these validators. 33 36 34 37 = My feed doesn't work, I see a "Page not Found" error? … … 37 40 == Changelog == 38 41 42 = 2.0 = 43 * Use default query instead of "query_posts" 44 * Added settings to customize the number of jobs in feed 45 * Updated to meet WordPress Extra coding standards 46 * Added translation capability 47 39 48 = 1.0 = 40 49 * Initial plugin release. 50 51 == Upgrade Notice == 52 53 = 2.0 = 54 More efficient code execution, fewer potential conflicts, adjustable size feed. -
wpjm-jooble-feed/trunk/wpjm-jooble-feed.php
r2316970 r2714465 1 <?php 1 <?php 2 3 /** 4 * Plugin Name: WPJM Jooble Feed 5 * Description: Creates a custom rss/xml feed for WP Job Manager compatible with Jooble feed requirements. 6 * Version: 2.0 7 * Author: Nick Pagazani 8 * Author URI: https://nickpagazani.com 9 * License: GPL v2 or later 10 * Text Domain: wpjmjooblefeed 11 * Domain Path: /languages 12 */ 13 14 if ( ! defined( 'ABSPATH' ) ) { 15 exit; // Exit if accessed directly 16 } 2 17 3 18 /* 4 Plugin Name: WPJM Jooble Feed 5 Description: Creates a custom rss/xml feed for WP Job Manager compatible with Jooble feed requirements. 6 Version: 1.0 7 Author: Nick Pagazani 8 Author URI: https://nickpagazani.com 9 License: GPL v2 or later 10 */ 11 12 function jooble_rss_feed(){ 13 header( 'Content-Type: application/rss+xml; charset=' . get_option( 'blog_charset' ), true ); 14 // header( 'Content-Type: text/html' ); 15 include_once( dirname( __FILE__ ) . '/rss-jooble.php' ); 16 // add_filter('pre_option_rss_use_excerpt', '__return_zero'); 17 // load_template( PATHTEMPLATEFILE . '/rss-jooble1.php' ); 18 // get_template_part('rss', 'jooble'); 19 } 20 21 /* This code initializes the custom Jooble RSS Feed*/ 22 add_action( 'init', 'JoobleCustomRSS' ); 23 function JoobleCustomRSS(){ 24 add_feed( 'jooble', 'jooble_rss_feed' ); 25 } 26 27 28 29 function jooble_feed_type( $content_type, $type ) { 30 if ( 'jooble' === $type ) { 31 return feed_content_type( 'rss2' ); 32 } 33 34 return $content_type; 35 } 36 37 add_filter( 'feed_content_type', 'jooble_feed_type', 10, 2 ); 19 * Required functions 20 */ 21 require_once plugin_dir_path( __FILE__ ) . 'class-wpjm-jooble-rss-feed.php';
Note: See TracChangeset
for help on using the changeset viewer.