MDVG
Forum Replies Created
-
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesHey Keesie,
Just a follow up. I decided to make my solution public via a custom plugin via: https://ww.wp.xz.cn/plugins/taxonomy-pages/
Of course, all credits to you!
Maybe you can refer people to this plugin if they have the same question as I had.
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesAh, right! I understand!
This piece of code create something similar as ‘categories’ with posts, but in this case for pages.Once I added taxonomies to the specific pages, the ‘related pages’ are now showing up in the sidebar/widget.
See result: https://bit.ly/2wPaXLx
Many thanks for your help!
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesThanks for your help so far!
-When adding your code to functions.php, the site crashes.
-When creating a custom plugin with your code, nothing happens.-However, I searched a bit and found out that this piece of code is acutally adding ‘pages’ to your widget. Unfortunately, on the front end, it’s not displaying results 🙁
add_action( 'init', 'pages_tax' ); function pages_tax() { register_taxonomy( 'things', 'page', array( 'label' => __( 'Things' ), 'rewrite' => array( 'slug' => 'things' ), 'hierarchical' => true, ) ); }Maybe I am thinking far to easy, but why not simply adding a piece of code to the current plugin and add ‘pages’?
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Not possible to relate pagesHey, thanks for your swift reply!
See screenshot: https://imgur.com/a/sMAF3MJ
I am not able to ‘select’ pages.