-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to show URL of bookmark made with micropub? #248
Comments
I assume you mean the Micropub plugin. To answer your question.
I want to help...I'm not sure exactly what you are asking with the URL? You want the full URL displayed? |
I did some more testing with my local development environment and I did the old "turn off all the plugins and see what happens" test. Always my favorite on WordPress.... It turns out the post-kind plugin conflicts with the popular Yoast SEO plugin. When I deactivate the Yoast plugin, everything shows just fine. When I activate Yoast, I don't see any name or URL displayed as the bookmark template should. |
I have seen another plugin somehow interfere with Post Kinds. Will investigate this. |
One more thing. Now I know where the problem is, I've been working on my own template and I use some test bookmarks, made with micropub. Most work perfectly, but I see the output of a post by Chris Aldrich formatted different. To test this yourself, make a micropub entry of his post "Inoreader as a indieweb feedreader". This post has some comments and you will see all these comments are also included in the postmeta table and are shown in the $cite array as individual arrays. This changes the way the array is created and thus how the cite variable is populated. I hope this might also help to improve this great plugin. I look forward to make some cool templates. And maybe make my own post kind "beers I drank" ;-) |
I have both post-kinds and the micropublish plugin installed. I can create a new entry through micropub as a "bookmark-of" entry. It gets into my database and in the wp_postmeta table it shows an array with the various properties of the post. The meta_key is mf2_bookmark-of and in the array I can find the originating URL and other properties like the text coming from that URL.
My question is, how do I change the kind-bookmark.php in my own kind_views directory to show information from that metakey entry in the wp_postmeta table? It looks as if the first line in the copied template already ends it in my case. The first line is
if ( ! $cite ) { return; }
With my limited knowledge of PHP, I understand it searches for a variable $cite and only when it finds this, it can continue. So some follow-up questions:
Thanks for your time and help.
The text was updated successfully, but these errors were encountered: