Posts by SunnyThemes

7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says
Say if someone creates a portfolio post type and some functions as a plugin and includes that inside their theme. The theme has all the necessary template files to present the portfolio. Now a user switches theme and they keep the plugin active – they still have no portfolio at the frontend and need to customize or create a template. So much for forward compatibility of using a plugin. YES: the backend functions keep intact – but still at least 60% ( i think even more but lets say 60 ) of the buyers here do not know how to do that – so they are still stuck. I now know even more than ever that using custom post types inside a theme is not bad practice. The way you do it code-technically is a different thing.

If the CPT is created in a plugin and the user switches themes, the content of the CPT is still available in the backend. Not so if the CPT is created in the theme.

7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says

I really like your theme!

I am just working on my first theme, so I can’t offer any help to the OP. But I wonder if the problem was the validation wouldn’t the reviewer mention that?

7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says

This is close but doesn’t auto-fill category when adding a new post:

add_action('admin_menu', 'register_custom_menu_page');
function register_custom_menu_page() {
   add_menu_page('Portfolio', 'Portfolio', 'edit_posts', 'edit.php?category_name=portfolio', '', '', 6);
}
7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says

That would be a good solution if I only needed one post category. I am thinking of having several categories, such as blog, news, portfolio, each with a main menu heading. Ideally adding a new post under the heading would automatically set the post category.

7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says
But, my users benefit from having their content represented in different sections in the admin. Enter CPTs.
You should be extending the WordPress UI for something like that rather than building CPTs unless you truly have different types of content.

This is something I am really interested in finding a solution for. Right now I can define a CPT of “News” then it will appear as a heading on the admin dashboard. This is ideal for the user interface. But, as this thread argues, this content really belongs as a post with category “News”. But if I use a post with category “News”, then the client must know to select the “News” category when entering a new post and they don’t have a nice “News” menu item.

To solve this I am currently researching ways to add a menu heading for a post category. I can’t find any mention of this on google so I wonder if anybody has any insight into whether this is possible.

7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says

I’m working on one now …

7 posts
  • Has been part of the Envato Community for over 1 year
  • Located in Canada
  • Sells items exclusively on Envato Market
SunnyThemes says

I am a newbie author to Themeforest. Does the purchaser not see updates automatically on their Wordpress dashboard? I know this can be done for premium plugins hosted outside of main repository.

by
by
by
by
by
by