Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using custom template for RSS feed #1029

Closed
Irpe1337master opened this issue Jun 13, 2017 · 2 comments
Closed

Using custom template for RSS feed #1029

Irpe1337master opened this issue Jun 13, 2017 · 2 comments

Comments

@Irpe1337master
Copy link

Irpe1337master commented Jun 13, 2017

What I Expected To Happen

Tried to use custom RSS feed template for Job Manager RSS feed. Followed instructions given here https://codex.wordpress.org/Customizing_Feeds .

What Happened Instead

Nothing happened so I dived into the code and noticed that in “class-wp-job-manager-post-types.php” file on line 370, a function “do_feed_rss2()” is called directly.

Maybe this function could be called using ‘do_action(“do_feed_rss2”, false);’? Then it would be possible to change RSS template as instructed in the codex.

@Irpe1337master
Copy link
Author

Any update on this issue? :)

@jom
Copy link
Member

jom commented Mar 27, 2018

For now, I'd recommend replacing the job_feed feed altogether.

remove_all_actions( 'do_feed_job_feed' );
add_feed( 'job_feed', 'your_custom_job_feed_func' );

@jom jom closed this as completed Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants