Forum Replies Created

Viewing 15 replies - 16 through 30 (of 31 total)
  • Plugin Author marksouthard

    (@mbsatunc)

    There is not a function specific to the plugin, but you can use a few different WordPress functions to print out the list of terms for the portfolio-type taxonomy.

    You can use get_terms() or the_taxonomies(). See https://codex.wordpress.org/Function_Reference/get_terms and https://codex.wordpress.org/Function_Reference/the_taxonomies for more information about these two functions.

    Plugin Author marksouthard

    (@mbsatunc)

    Plugin Author marksouthard

    (@mbsatunc)

    You would change this bit __('Date: ', 'zilla') to be __('Project Duties: ', 'zilla')

    Plugin Author marksouthard

    (@mbsatunc)

    I think you’ll need to post this question on the ThemeZilla forums as they are using quite a bit of custom code in outputting the single portfolio page. If I had to venture a guess, I would imagine that either you did not create a gallery for the portfolio and it is pulling all images attached to the portfolio post, or your gallery includes the feature image.

    For the home page, they are loading a custom image size via this line of code in the content-portfolio.php file:

    <?php the_post_thumbnail('portfolio-thumb'); ?>

    You can adjust the image size via the funcitons.php file or use a new image size. Again, the support forum at ThemeZilla will be able to better assist you on this particular request as they are using a custom template that is not part of the plugin.

    Plugin Author marksouthard

    (@mbsatunc)

    You will not need to edit the plugin files. The theme has been written in a means so that you can easily overwrite the current output. Ideally, you would be using a child theme and would throw the following code in your functions.php file. If not, you can edit the template-tags.php file in the includes folder (includes/template-tags.php). The code of interest is as follows and can be copy/pasted/edited to meet your needs:

    /**
     * Build and echo the portfolio meta information
     *
     * @param  int $postid The post id
     * @since  1.0
     * @return void
     */
    function base_portfolio_meta($postid) {
    	$output = '';
    
    	$url = get_post_meta( $postid, '_tzp_portfolio_url', true);
    	$date = get_post_meta( $postid, '_tzp_portfolio_date', true);
    	$client = get_post_meta( $postid, '_tzp_portfolio_client', true);
    	$role = get_post_meta( $postid, '_zilla_broadcast_portfolio_role', true);
    
    	if( $url || $date || $client || $role ) {
    		$output .= '<div class="portfolio-entry-meta"><ul>';
    			if( $date ) {
    				$output .= sprintf( '<li><strong>%1$s</strong> <span class="portfolio-project-date">%2$s</span></li>', __('Date: ', 'zilla'), esc_html( $date ) );
    			}
    			if( $client ) {
    				$output .= sprintf( '<li><strong>%1$s</strong><span class="portfolio-project-client">%2$s</span></li>', __('Client: ', 'zilla'), esc_html( $client ) );
    			}
    			if( $role ) {
    				$output .= sprintf( '<li><strong>%1$s</strong><span class="portfolio-project-role">%2$s</span></li>', __('Role: ', 'zilla'), esc_html( $role ) );
    			}
    			if( $url ) {
    				$output .= sprintf( '<li><strong>%1$s</strong><a class="portfolio-project-url" href="%2$s">%3$s</a></li>', __('URL: ', 'zilla'), esc_url( $url ), esc_url($url) );
    			}
    
    		$output .= '</ul></div>';
    	}
    
    	echo $output;
    }
    Plugin Author marksouthard

    (@mbsatunc)

    What theme are you using? It’s quite probable that this is something that can be changed within the theme files.

    Plugin Author marksouthard

    (@mbsatunc)

    For outputting the portfolio types in a portfolio post, you can use either get_the_terms (http://codex.wordpress.org/Function_Reference/get_the_terms) or the_terms (http://codex.wordpress.org/Function_Reference/the_terms). portfolio-type will be the taxonomy.

    If you want to output related portfolio posts within the portfolio post, you are going to have to write some custom code. The portfolio plugin does not include this functionality at this time.

    Plugin Author marksouthard

    (@mbsatunc)

    For information about the plugin, please view https://wordpress.org/plugins/zillaportfolio/other_notes/

    As for outputting the portfolio types in a portfolio post, you can use either get_the_terms (http://codex.wordpress.org/Function_Reference/get_the_terms) or the_terms (http://codex.wordpress.org/Function_Reference/the_terms). portfolio-type will be the taxonomy.

    Plugin Author marksouthard

    (@mbsatunc)

    The plugin should rely on the archive.php file to display the archive pages unless a taxonomy-portfolio-type.php file is included in the theme. If you add that, a standard WordPress loop should paginate automatically as any other index or archive page would.

    AJAX pagination is certainly possible, but is something that you would be responsible for adding via the theme. AJAX pagination will not be included as part of the plugin.

    Plugin Author marksouthard

    (@mbsatunc)

    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.

    Plugin Author marksouthard

    (@mbsatunc)

    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_media filter prepends the media elements to the_content(). The tzp_add_portfolio_post_meta filter append the meta elements to the_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_fields and tzp_metabox_fields_save functions 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.

    Plugin Author marksouthard

    (@mbsatunc)

    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_save

    Plugin Author marksouthard

    (@mbsatunc)

    Marking resolved.

    Plugin Author marksouthard

    (@mbsatunc)

    By default, you can create a page titled ‘portfolio’ that will automatically load the portfolio archive page. Alternatively, within your theme’s functions.php file, you can add the following to disable to the automatic portfolio archive as well as to prevent the default CSS from loading.

    // Prevent archives for the portfolio plugin; will use a custom page template
    if( !defined('TZP_DISABLE_ARCHIVE') ) define('TZP_DISABLE_ARCHIVE', TRUE);
    // Prevent Zilla Portfolio CSS from loading
    if( !defined('TZP_DISABLE_CSS') ) define('TZP_DISABLE_CSS', TRUE);

    By doing this, you can then create a custom page template that loads the portfolio items with a custom WordPress loop. You’ll query the post type of ‘portfolio’.

    For the portfolio-type archives, you can create a taxonomy-portfolio-type.php file that will load the portfolio type archives, or let the theme default to archive.php.

    I’m not sure what you are requesting with “add transactions and effects for the portfolio”.

    Hello, I’m one of the devs on the Blox theme. We create a dynamic stylesheet on the fly. Within that file creation, we’re hitting an error with the polylang error:

    <b>Warning</b>: in_array() expects parameter 2 to be array, null given in <b>/home/blackmam/public_html/latinroom.org/wp-content/plugins/polylang/include/auto-translate.php</b> on line <b>16</b><br />

Viewing 15 replies - 16 through 30 (of 31 total)