Portfolio Plugin
-
Hi marksouthard,
Your plugin is nice and I liked it however I have couple of important questions.
How to build a slider gallery? Is it compatible with any Gallery plugin?
How to customize single page? Portfolio Type Category Page? Add transitions?
Can we add more features to the portfolio like tags or location or area?Thank you for your support!
-
Hello,
The plugin will output gallery images as an unordered list. This could be added onto with a slider should you choose to do so. Additionally, you could remove the filter that adds the portfolio gallery onto a portfolio post, and use a Gallery plugin to handle the galleries for portfolio posts.
remove_filter('tzp_add_portfolio_post_media');The single portfolio page is highly customizable. You would create a single-portfolio.php file in a theme, otherwise the single.php file will be used to display the portfolio post. I would suggest removing the following to two filters and outputting the content directly:
remove_filter('tzp_add_portfolio_post_media');
remove_filter('tzp_add_portfolio_post_meta');The portfolio type category pages can be reach via a slug similar to this: /portfolio-type/animation
You can add more features to the individual portfolios. I’ve written the metabox code so that it is fairly easy to hook into them to add additional fields. Have a look at the following two actions:
tzp_portfolio_settings_meta_box_fields
tzp_metabox_fields_saveHi,
I don’t want to remove the built-in gallery option however should I add my own Jquery transition to make the images slide or I can connect with other Gallery plugin. That was my question.
Second I prefer to use single-portfolio.php not to effect the blog file however what are the parameters used to read the contents like Portfolio Information (Client, Date, URL)?
Please can you elaborate why remove these 2 filters?
remove_filter(‘tzp_add_portfolio_post_media’);
remove_filter(‘tzp_add_portfolio_post_meta’);These will help me add more filters?
tzp_portfolio_settings_meta_box_fields
tzp_metabox_fields_saveHi,
Another question I have please.
How to get list posts of certain category as menu.
I want the side menu to have the list of posts of current category including current post shown.
Hello,
You do not want to use another gallery plugin. You want to use a jQuery plugin to add the slider effect to the existing HTML.
The single-portfolio.php file will only be applied to portfolio posts and not regular blog posts. The
tzp_add_portfolio_post_mediafilter prepends the media elements tothe_content(). Thetzp_add_portfolio_post_metafilter append the meta elements tothe_content(). By removing these two filters you will prevent the media and meta from being added automatically to the code. You can then write your own functions to output the content. In theory, you could use those same two function within the single-portfolio.php file. They expect the content to be passed to them, but you could pass an empty string and then output the resulting code.The
tzp_portfolio_settings_meta_box_fieldsandtzp_metabox_fields_savefunctions could be used in part to add additional metabox fields. Alternatively, you could use advanced custom fields to add any extra custom meta fields. If you add additional fields, you will need to write your own function output the portfolio meta content as the plugin is set up to only output the ones that come packed with the theme.To display portfolio types or portfolio posts as a menu item, you can go to the Menu Manager page. In the upper right corner you will find “Screen Options”. Expand that and check the box next to Portfolio Posts and Portfolio Types. You will now have these two available to add to menus.
Hi,
So now I’ll disable all automatic filters and styles loading and I want to create custom load however how to load certain filter like date or url or text or gallery?
What are the parameters or codes?
Hi,
The solution you gave me regarding posts isn’t the one I’m looking for.
What I want is a code that loads related posts of the same category/type with the current post loaded.
Example:
Port1 and Port2 and Port3 are in Type1
So when I click on Port1 and it loads I get a sidebar menu.
Type1
—-
Port1 (current)
Port2
Port3This is the way it should work
For information about the plugin, please view https://ww.wp.xz.cn/plugins/zillaportfolio/other_notes/
As for outputting the portfolio types in a portfolio post, you can use either
get_the_terms(http://codex.ww.wp.xz.cn/Function_Reference/get_the_terms) orthe_terms(http://codex.ww.wp.xz.cn/Function_Reference/the_terms).portfolio-typewill be the taxonomy.
The topic ‘Portfolio Plugin’ is closed to new replies.