Shortcodes are not taken. They appear as plain text.
Support › MB User Profile › Shortcodes are not taken. They appear as plain text.
- This topic has 6 replies, 2 voices, and was last updated 3 years, 5 months ago by
Long Nguyen.
-
AuthorPosts
-
November 10, 2021 at 12:28 AM #31831
Roma
ParticipantShortcodes are not taken. They appear as plain text.
I am following this tutorial:
https://metabox.io/p1-add-guest-author-in-wordpress/#before-get-startedFoto:
https://ibb.co/jMTzP21November 10, 2021 at 12:41 AM #31832Roma
ParticipantBackend: https://ibb.co/g97m6PK
November 10, 2021 at 3:13 PM #31844Long Nguyen
ModeratorHi Roma,
You can switch to the tab Text and add the shortcode, remember to remove two spaces between open and close square brackets. Screenshot https://imgur.com/wu5DRpf
November 11, 2021 at 2:47 AM #31861Roma
ParticipantThank you. I was able to continue with the tutorial.
Now:
https://metabox.io/p1-add-guest-author-in-wordpress/#before-get-started- In this part:
In addition, if you allow users to change their passwords from the My Account page, add this below shortcode to the content of that page:
They mention a short code so that the password can be edited but the shortcode is not visible.
- Other question:
That photo shows Title and Content custom fields. https://imgur.com/CI6mb6k
But this Shortcode shows double the fields that will be for content and title:
[mb_frontend_form id = "publish-post" post_fields = 'title, content' status = "pending"]
https://imgur.com/W5S5V4uI guess it could look like this:
[mb_frontend_form id = "publish-post"]My final Shorcode looked like this:
[mb_frontend_form post_fields = 'title, content, thumbnail']
It has helped me to continue with the tutorial.If you can comment if I am correct, I would appreciate it.
- As seen in the shorcode (https://ibb.co/7VG2WsQ) the status of the post is pending. If it appears on the dashboard, but even if I edit it, there is no way to change its status to published.
Can it be enabled from the dashboard for either the administrator or guest author? What would be the recommended way?
November 11, 2021 at 11:31 AM #31867Long Nguyen
ModeratorHi Roma,
- They mention a shortcode so that the password can be edited but the shortcode is not visible.
- But this Shortcode shows double the fields that will be for content and title
- The frontend submission and dashboard do not allow the users to update post status on the frontend. If you want to allow the users to update post status by using a custom field and custom code, please follow this topic
https://support.metabox.io/topic/controlling-post-status-in-front-end-dashboard/
Please find the shortcode to update the password on the extension's documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-user-password
[mb_user_profile_info id="rwmb-user-info"]
As you can see on this documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes
the default post fields are supportedtitle
,content
,excerpt
,date
,thumbnail
. So you do not need to create the same custom fields like that.November 13, 2021 at 12:50 AM #31891Roma
ParticipantHi, Long. Thanks for his responses. I have practically finished the tutorial. I would only be missing point three. I'm not sure where to put that code because I use this shorcode to show the Dashboard:
[mb_frontend_dashboard edit_page = "124"]
Reading the documentation I understand that a similar example appears in the item: Reorder Post Fields.
Where should I make those changes?
November 13, 2021 at 9:19 AM #31896Long Nguyen
ModeratorHi,
Do you mean the code to allow users to change the post status on the frontend? You can put it in the file functions.php under the theme/child theme folder, like registering the meta box by code https://docs.metabox.io/creating-meta-boxes/#using-code
- In this part:
-
AuthorPosts
- You must be logged in to reply to this topic.