Mat
Forum Replies Created
-
Forum: Plugins
In reply to: [Polymer for WordPress] custom elementGood.
( if you like this plugin please consider to put some stars on the review 🙂 )Forum: Plugins
In reply to: [Polymer for WordPress] custom elementProbably you missed only the right name of the block 🙂 “my-hello”
I could put a warning somewhere to use the same one of the polymer-element and that a ‘-‘ in the name is required by Polymer.
It should work with these conditions.Forum: Plugins
In reply to: [Polymer for WordPress] custom elementNo problem. I tested personally your code and it worked.
Block name: my-hello
Code:<polymer-element name="my-hello" noscript> <template> <h1>Hello</h1> </template> </polymer-element>In a post I selected “my-hello” from “Import blocks” list (activated ad blue)
Post content:TEST [poly paper-button raisedButton]Button[/poly] <my-hello></my-hello>The polymer button works.
The block works. I see: Hello (in H1)Forum: Plugins
In reply to: [Polymer for WordPress] custom elementHi Junal.
A polymer-element name requires a ‘-‘
Try using the name “my-hello” for example.
Reference here:
https://www.polymer-project.org/docs/start/creatingelements.htmlIf you need the category link from the ID you could use get_category_link() function:
http://codex.wordpress.org/Function_Reference/get_category_linkForum: Reviews
In reply to: [Category Featured Images] Cannot add featured image for custom categoriesAs explained in the forum: this is not possible because custom taxonomies has their own actions that depends on the taxonomy slug and my plugin needs to hook these actions to work.
What do you mean with “link the image to the category”?
The only way to select an image for a category with my plugin is to edit the category and choose an image there.Hi thamaraiselvam.
I save the categories images id inside a WordPress option. If you want to see the source code of the plugin it is available to the public:
http://plugins.svn.wordpress.org/category-featured-images/trunk/My plugin doesn’t work with custom taxonomies because it requires 2 actions to work (‘edited_category’ and ‘category_edit_form’) and these actions in a custom taxonomy depends on the category slug.
If you have the IDs of the categories to skip you could just jump to the next category in the for loop…
... $cat = $category->term_id; if( $cat == 2 || $cat == 5 ) continue; ...Forum: Plugins
In reply to: [Polymer for WordPress] Not load html and scriptsHi Bruno.
It doesn’t work inside a PHP do_shortcode because I create the list of the imports while saving a post. If I make this list at runtime it will slow down the page loading (because I parse the post content).
Perhaps I could add an option to force import some components. I will think about it.Forum: Plugins
In reply to: [Category Featured Images] Does not workHi gnfb.
I looked for Genesis theme but I don’t find it in the WordPress theme directory, so I can’t make a test.
Virtually my plugin should work with any theme that shows the featured image in the standard way. I use it in my personal website and I also tested it with many common themes.
I can’t help you, but if that plugin works for you it’s fine.Forum: Plugins
In reply to: [Polymer for WordPress] Add custom polymer elementsCurrently no.
The main drawback that I see here is that it could be a security threat to allow any URL to be imported. I will think about adding it.Forum: Plugins
In reply to: [Polymer for WordPress] Add custom polymer elementsHi Ykaribou.
If you want to insert local elements you can use Blocks, as specified in the FAQ page of the plugin.
Otherwise… you mean add an import like this:
<link rel="import" href="my-custom-element.html">
in HEAD tag?Forum: Plugins
In reply to: [Category Featured Images] ShortcodeI have just added ‘cat_id’ also to cfi_featured_image
The update should be available shortly.Forum: Plugins
In reply to: [Category Featured Images] custom image sizeHi darfil.
Currently this is not possible directly but in PHP you could use “cfi_featured_image_url( array( ‘size’ => ‘large’ ) )” to get the image url, use it in a IMG tag and specify the size there.