#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Shortcode not worki...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Shortcode not working for inserting a topic

    Last Post
RSS

michelacosta
Posts: 16
 michelacosta
Topic starter
November 18, 2021 12:28 pm
(@michelacosta)
Active Member
Joined: 12 months ago

Hi there,

I'm trying to insert at the end of this page one of my topics (id = 17378)

I'm using this shortcode:

[ wpforo item="topic" id="17378" ]

But what appears on the page is the main page of my forums.

If I try for example this shortcode...

[ wpforo item="topic" id="1" ]

...it works correctly and it inserts the firs of my topics.

Forum Page URL
https://michelacosta.com/messi-vs-cristiano/messi-balon-de-oro/
wpForo Version
1.9.9.1
WordPress Version
5.8.2
PHP Version
7.4.24
MySQL version
5.7.35-cll-lve
This topic was modified 7 months ago 2 times by michelacosta
Topic Tags
shortcodes topic ID
11 Replies
michelacosta
Posts: 16
 michelacosta
Topic starter
November 18, 2021 12:30 pm
(@michelacosta)
Active Member
Joined: 12 months ago

This is the topic that should appear:

https://michelacosta.com/messi-vs-cristiano/foro/general/balon-de-oro-2021/#post-17378

I guess the id is what we see at the end of the querystring

5 Replies
Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1440
November 18, 2021 12:47 pm
Reply tomichelacostamichelacosta

@michelacosta,

Try [ wpforo item="topic" slug="balon-de-oro-2021" ]

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

michelacosta liked
michelacosta
 michelacosta
(@michelacosta)
Joined: 12 months ago

Active Member
Posts: 16
November 18, 2021 12:54 pm
Reply toChrisChris
michelacosta

@chris worked like a charm, thanks!

Chris liked
Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1440
November 18, 2021 1:08 pm
Reply tomichelacostamichelacosta
Chris
michelacosta

@michelacosta,

I guess you used the post ID not the topic ID in the shortcode, that was the problem why the shortcode didn't work.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

michelacosta
 michelacosta
(@michelacosta)
Joined: 12 months ago

Active Member
Posts: 16
November 18, 2021 1:19 pm
Reply toChrisChris
michelacosta
Chris
michelacosta

@chris probably! I took the id from the url and it must be the post id. Where can i see the topic id?

Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1440
November 18, 2021 1:47 pm
Reply tomichelacostamichelacosta
Chris
michelacosta
Chris
michelacosta

@michelacosta, 

For topics better to use slug, not ID, to get reed of unexpected issues 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

michelacosta liked
Hertman
Posts: 1
 Hertman
November 18, 2021 2:05 pm
(@hertman)
New Member
Joined: 7 months ago
Posted by: @chris

For topics better to use slug, not ID, to get reed of unexpected issues 

Hmm...I've always used IDs and hadn't have any issues either.

Ultra-fast cloud hosting plans on both Linux & Windows servers.

4 Replies
Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1440
November 19, 2021 8:07 am
Reply toHertmanHertman

@hertman,

Unexpected issue is that users use wrong ID's` post, forum, category IDs in the shortcode for topics.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Hertman liked
michelacosta
 michelacosta
(@michelacosta)
Joined: 12 months ago

Active Member
Posts: 16
November 19, 2021 8:16 am
Reply toChrisChris
Hertman

@chris i was looking for something like a topic id, everywhere, and couldn't find it. I only see that post id in the url.

Can you tell me where to find that topic id? Would be helpful for the future.

I guess there must be a place to find this id without having to go to the database directly.

Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1440
November 19, 2021 9:14 am
Reply tomichelacostamichelacosta
Chris
Hertman

@michelacosta,

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

michelacosta
 michelacosta
(@michelacosta)
Joined: 12 months ago

Active Member
Posts: 16
November 19, 2021 9:17 am
Reply toChrisChris
michelacosta
Chris
Hertman

@chris wow... not so user-friendly xD

Thanks for the info, will use it next time

Chris liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Sow sections of the forum on several pages
    4 weeks ago
  • Shortcode for current active member count?
    4 months ago
  • How to use other plugin shortcodes on wpforo themes
    5 months ago
  • Where can I find all the shortcodes to use
    10 months ago
  • Add Search box to any place
    1 year ago
Topic Tags:  shortcodes (13), topic ID (3),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Suggestion How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 11 hours ago

  • Posts deleted in database still show up on front-end

    By nylex, 13 hours ago

  • Not all links are automatically added with the "nofollow" attribute

    By st7878, 16 hours ago

  • Editors assign users to groups

    By mike_netinfo, 18 hours ago

  • Set password link opens forum login page instead of set password page

    By JanJan, 19 hours ago

  • User banned for using icons?

    By JanJan, 19 hours ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • spam32
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2190)

Recent Posts

  • RE: recover deleted forum categories

    I didn't delete the categories on the forum, just did s...

    By Asmadi1, 4 hours ago

  • recover deleted forum categories

    hi I need help, I accidentally deleted categories and f...

    By Asmadi1, 4 hours ago

  • RE: Not all links are automatically added with the "nofollow" attribute

    I have no idea, i guess not.

    By dimalifragis, 5 hours ago

  • RE: How to make new user to get approve manually before creating post and profile.

    Thanks again

    By Adhyansh21, 9 hours ago

  • RE: Posts deleted in database still show up on front-end

    Ok then, wait until someone from wpForo support will he...

    By dimalifragis, 11 hours ago

  • RE: Set password link opens forum login page instead of set password page

    Hi @janjan, Go to Dashboard > Forums > Settings...

    By Chris, 16 hours ago

  • RE: Editors assign users to groups

    Hi @mike_netinfo, Only administrators can change user...

    By Chris, 17 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,933 Topics
50.2 K Posts
6 Online
48 K Members

Latest Post: recover deleted forum categories Our newest member: loginadmin12 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation