Automattic / Automattic/WP-Job-Manager

Jobs shortcode adds extra elements when added through Site Editor

Open
#2,521 0 comments 0 reactions 0 assignees View on GitHub
Bug
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**
![wf4a4p.png](https://github.com/Automattic/WP-Job-Manager/assets/3220162/8915cdbc-da34-4953-bfba-4c8e51086daf)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.