postid
-
Hi, I just tried the provided shortcodes (FAQ’s) but get no results with the ones with “postid”. Where can I find that postid for the uploaded games? Thanks in advance. Jürgen
-
Hi,
I was a bit worried that I broke something with the last update 🙂The postid is the ID of the chessgame under Dashboard > Chessgames. It is not always simple to find that ID, but when editing that chessgame you will see an url in the address bar like:
https://example.org/wp-admin/post.php?post=28401&action=edit
where 28401 is the ID of that chessgame post.The shortcode would then be:
[chessgame_shizzle_game postid="28401"]
[chessgame_shizzle_game_extended postid="28401"]Hi Marcel, thank you for your reply. But there is still a problem. In our website we don’t use permalinks with post-id. As long as the games are not published I can see a postid. But as soon as the game is published there is no way to find out a postid.
You can see the problem in the following site where i used the available shortcodes. The list works but not the single game shortcodes. Hope you can find a solution for us. Thank you, JürgenHi Juergen,
I think I understand what you mean.
This plugin does not use an embed. I am not familiar with the new block editor, but the way this plugin and this shortcode is set up is by using a content block and adding the shortcode with the postid manually.
You can go to Dashboard > Chessgames and the link for each chessgame will have thepostparameter with an id. It is to be added manually to the shortcode.
It seems you are embedding another post, which is not really how you use this plugin.I will check out the block editor this week and see how the embed works. Maybe they have something to make adding shortcodes easier, if so, maybe the parameter for postid can be easier there. I don’t know 🙂
If the block editor embeds don’t really help, I will have to document this better.Hi Marcel,
I will amplify more details to describe the problem, because I think I use the plugin as mentioned.As suggested I go to Dashboard > Chessgames. Currently I have 4 chessgames: 3 are published, 1 is draft.
The shown permalink in the editing form of one of the published games is https://www.koenigsjaeger.de/chessgame/schachpartie-christoph-test/
The browser shows the full URL as
https://www.koenigsjaeger.de/wp-admin/post.php?post=15082&action=editPretty clear – 15082 is the id 😉
Now I use (on the page https://www.koenigsjaeger.de/partien) the provided shortcode syntax:
[chessgame_shizzle_game_extended postid=”15082″]And at this point – very disappointing to me – the requested chessgame is not to see on the website!
Actually I think this is no problem of embedding or using the new block editor. I just would like to avoid some misunderstandings. Hope this helps. I every case I’m grateful for your help.
Regards, Juergen
Oh my,
surprisingly I just figured out how it works properly.
No (!) quotation marks for the id in the shortcode:
‘[chessgame_shizzle_game_extended postid=”15082″]’So, only thing left to do now is to update the documentation.
🙂
Bye, Juergen
Hi juergen,
Ah, yes, the quotes become backticks here on the wp.org website. I will add a note to it.
The support forum is also not a good platform for sharing code for that reason.
The topic ‘postid’ is closed to new replies.