Custom widget
-
Hi!
I’m customizing my theme and I used the the add category post widget but I want to add a custom post instead of a normal post there. I tried to use shortcodes directly on php and not worked. Tried to put the html/php on the post content with shortcodes with no success, it seems that i can just use one shortcode per page.
Is there any way to customize more the widget menu? With add and list custom posts?Thanks in advice!
-
And just another suggestion, i think the #frontier-post-new-list-status should be classes and be different for revision, published and draft, I’m trying to put different colors on each different status 🙂
Hi,
1: Can you explain a bit more on what you want to achieve ?
Do you want to be able have different add post buttons on the same page, that will add different post types ?
you can only use one frontier-post shortcode per page, but there might be another way around what you want to achieve.2: I will look at adding a separate css class per post_status – what list form are you using ?
(you can check list form in Frontier Post Settings)Hi!
1 – I created a custom post type on my website, for example: “Movies”, right?
After that I want to put on the widget list an “add new Movie” button but with the current widget settings i can just only put an “add Post (the default one, and I dont want it, I want an add Movie)” button.
And the same thing for the pending posts approval/list my posts, it only lists the pending default posts, not the movie ones, you know? 🙂2 – I solved my problem using some js to get the right <td> i wanted 🙂
Hi,
The easiest way would be to add support for the frontier_add_post_type parameter as url link in addition to the task=new
Ex: http://wpfrontier.com/my-posts-2/?task=new&frontier_add_post_type=movie
This way you can use this in a normal text widget, and style the HTML they way you want
Will that do ?
Yes! With this I added my button to add a new custom post type, now I need to list all my custom post types on the widget, how can I do this?
Is it “Frontier My Post” widget you are referring to ?
Yes, it only lists the default posts, right? Is there some way to list my custom posts?
working on it 🙂
Thank you for the quick support 🙂
Keep up the good work!Hi,
I have included the changes in version 3.8.7.8 https://downloads.wordpress.org/plugin/frontier-post.3.8.7.8.zip
– You can now select post type in the My Post Widget, and the add new post will create a post with this post type
– url parameter: frontier_add_post_type added (ex: http://wpfrontier.com/my-posts-2/?task=new&frontier_add_post_type=movie)I still need to do some testing, and hope to release it as a stable release 3.9 during the weekend
Hi! many thanks for the support! I’ll upgrade and test it 😀
Implemented in version 4.0,0
Thanks 😀
- The topic ‘Custom widget’ is closed to new replies.