Forum Replies Created
-
AuthorPosts
-
I am having the same issue with the most recent update. The Masonry Gallery does display when I activate the lightbox links as suggested by admin in one of the support threads, however, that is not a permanent fix because I don’t want the lightbox active. Hoping the support team can fix this issue since so many people are affected.
April 3, 2017 at 7:38 pm in reply to: Masonry Gallery Bug since 4.0.3 when Lightbox is deactivated #771287I am having the same issue with the most recent update. The Masonry Gallery does display when I activate the lightbox links as suggested by admin in one of the support threads, however, that is not a permanent fix because I don’t want the lightbox active. Hoping the support team can fix this issue since so many people are affected.
I am having the same issue with the most recent update. The Masonry Gallery does display when I activate the lightbox links as suggested by admin in one of the support threads, however, that is not a permanent fix because I don’t want the lightbox active. Hoping the support team can fix this issue since so many people are affected.
Thanks for the post regarding the order by option. However, you did not respond to the code not working for pagination. Here’s the issue posted again:
I’ve edited the file per your instructions but the items ( ‘items’ => ’20’, ) attribute is not working. However, pagination set to ‘no’ is working. Checkout one of the category pages here: https://northcarolinamusichalloffame.org/portfolio_entries/2009-inductees/
Ismael,
Thanks for getting back to me.
I’ve edited the file per your instructions but the items ( ‘items’ => ’20’, ) attribute is not working. However, pagination set to ‘no’ is working. Checkout one of the category pages here: https://northcarolinamusichalloffame.org/portfolio_entries/2009-inductees/
Here’s the edited code:
$grid = new avia_post_grid(array( 'linking' => '', 'columns' => '4', 'items' => '20', 'contents' => 'title', 'sort' => 'yes', 'paginate' => 'no', 'set_breadcrumb' => false, )); $grid->use_global_query(); echo $grid->html(); ?>
Also, can you give me an example of where to add the ‘query_orderby’ => ‘title’, and ‘query_order’ => ‘DESC’, attributes.
February 29, 2016 at 10:12 am in reply to: How To Make Changes To The Portfolio Category Page #590629@Vinnie, thanks for getting back to me but I know how to make the change you showed.
My issue is that the portfolio category/archive page is automatically generated and it looks like the page I posted previously: https://northcarolinamusichalloffame.org/portfolio_entries/2010-inductees
I don’t know how to update the autogenerated category/archive page. I looked at all the .php template page with no success. I’m hoping you can tell me what file is formatting the default category page and hope I can update it to make the changes I suggested above.
Also, I’d like to add the modified file to my child theme so it doesn’t get erased at the next theme update.
January 15, 2016 at 11:47 am in reply to: Renaming The Portfolio Custom Post Type – Child Theme Issues #566053@Ismael, the code does change the taxonomy label but keeps the “portfolio” label for everything else.
However, thanks to your code, I was able to figure out how to solve the problem. I added the following at line 27:
add_action( 'after_setup_theme', 'init_reg_portfolio' );
So now the complete code is as follows:
function unregister_taxonomy(){ global $wp_taxonomies; $taxonomy = 'portfolio_entries'; if ( taxonomy_exists( $taxonomy)) unset( $wp_taxonomies[$taxonomy]); } add_action( 'init', 'unregister_taxonomy', 30); // portfolio args add_action( 'init', 'init_reg_portfolio', 50 ); function init_reg_portfolio() { add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod', 50, 1); $tax_args = array( "hierarchical" => true, "label" => "Hall of Fame Categories", "singular_label" => "Hall of Fame Category", "rewrite" => array('slug'=>_x($permalinks['portfolio_entries_taxonomy_base'],'URL slug','avia_framework'), 'with_front'=>true), "query_var" => true ); $avia_config['custom_taxonomy']['portfolio']['portfolio_entries']['args'] = $tax_args; register_taxonomy("portfolio_entries", array("portfolio"), $tax_args); } add_action( 'after_setup_theme', 'init_reg_portfolio' ); function avf_portfolio_cpt_args_mod($args) { $labels = array( 'name' => _x('Hall of Fame', 'post type general name','avia_framework'), 'singular_name' => _x('Hall of Fame Entry', 'post type singular name','avia_framework'), 'add_new' => _x('Add New', 'portfolio','avia_framework'), 'add_new_item' => __('Add New Portfolio Entry','avia_framework'), 'edit_item' => __('Edit Portfolio Entry','avia_framework'), 'new_item' => __('New Portfolio Entry','avia_framework'), 'view_item' => __('View Portfolio Entry','avia_framework'), 'search_items' => __('Search Portfolio Entries','avia_framework'), 'not_found' => __('No Portfolio Entries found','avia_framework'), 'not_found_in_trash' => __('No Portfolio Entries found in Trash','avia_framework'), 'parent_item_colon' => '' ); $args['labels'] = $labels; return $args; }
I’m only mention it and reposted the code in case others find this thread in the future.
I appreciate your assistance with this and you can mark this thread resolved.
January 14, 2016 at 8:34 am in reply to: Renaming The Portfolio Custom Post Type – Child Theme Issues #565243@Ismael, thanks your code worked for the most part.
The only issue now is that the label for categories still reads “Portfolio Categories”. How can I change that label too?
I’m developing the site in a local environment so I can’t give you the admin access. Any other suggestions?
Also, I did start a new thread at: https://kriesi.at/support/topic/renaming-the-portfolio-custom-post-type-child-theme-issues/#post-564363 So I think we should stop communicating on this thread. I don’t want to create twice the work or you.
January 13, 2016 at 6:47 am in reply to: Renaming The Portfolio Custom Post Type – Child Theme Issues #564367I changed the permalinks already.
Now I want to change the label in the admin and related sections from Portfolio to Inductees for a Hall of Fame museum client. It just makes it easier for them to understand and deal with when the custom post type is labeled properly.
They have already uploaded content under the Portfolio CPT so creating a new CPT called Inductees is the wrong way to go.
@Dude, I made the changes you mention in this thread and it’s working when I update the core theme file. However, I can’t get the theme to override the portfolio cpt labels when using my child theme.
I obviously want the modified register-portfolio.php file to reside in my child theme so the changes won’t be overridden when Enfold is updated. But I cannot get the modified file to override the parent theme. It’s possibly because the original file is in a sub-folder.
I’ve done a lot of research online and still can’t get it fixed. Please advise?
-
AuthorPosts