Automattic / Automattic/WP-Job-Manager
Jobs shortcode adds extra elements when added through Site Editor
- Dominant language
- PHP
- Stars
- 899
- Forks
- 369
- Avg merge
- 11h 37m
- Merged PRs (30d)
- 12
Description
**Describe the bug**
When adding the Jobs shortcode `[jobs show_filters=false]` to a template in the Site Editor, it adds extra elements.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to the Site Editor
2. Modify a template
3. Add the `[jobs show_filters=false]` shortcode *the `[jobs]` shortcode itself seems fine*
4. See the extra `p` and `a` tags under each element.
**Screenshots**

Contributor guide
Research direction
Reproduce the issue by adding [jobs show_filters=false] to a template in the WordPress Site Editor and compare it with [jobs]. Trace the shortcode output and its rendered markup, focusing on the unexpected p and a tags; done means the shortcode renders without those extra elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100