-
AuthorPosts
-
November 28, 2017 at 7:30 pm #882851
Hi there,
I have a question regarding broken portfolio (post) nav after adding the page attributes like mentioned in a previous thread.
I have added the following code:
<?php
add_filter(‘avf_portfolio_cpt_args’, ‘avf_portfolio_add_cpt_args’, 1);
function avf_portfolio_add_cpt_args($args) {
$args[‘hierarchical’] = true;
$args[‘supports’] = array(‘title’,’thumbnail’,’excerpt’,’editor’,’comments’, ‘page-attributes’, ‘avia_post_nav_settings’);
return $args;
}This allows me to have parent and child portfolio which I need for a specific purpose. However, the portfolio nav is broken because of this code.
Any idea how to fix this?
Regards,
Jorrit
November 29, 2017 at 3:11 pm #883068Anybody have an idea?
November 29, 2017 at 3:53 pm #883078Hi Jorrit,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaNovember 29, 2017 at 4:18 pm #883089Hi Victoria,
Thanks that you’re willing to take a look. In the private content box, you’ll find the admin access.
Regards,
Jorrit
November 30, 2017 at 11:42 am #883333Hi Victoria or anybody else,
Do you have any idea for a solution?
Best Regards,
Jorrit
December 4, 2017 at 10:14 pm #884808Hello Support team,
It has almost been a week ago that I opened this thread. Could anyone please advice me?
Regards,
Jorrit
December 5, 2017 at 3:35 pm #885104Hi Jorrit,
Which portfolio nav do you mean? I do not see any. Can you please describe in more detail the issue you’re having?
Please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.
Best regards,
VictoriaDecember 5, 2017 at 3:35 pm #885105Hi Jorrit,
Which portfolio nav do you mean? I do not see any. Can you please describe in more detail the issue you’re having?
Please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.
Best regards,
VictoriaDecember 5, 2017 at 10:37 pm #885235Hi Victoria,
Thanks for your answer abd advice.
I mean the standard portfolio nav with the arrows at the right and left side of the screen that can be used to go the next or previous portfolio item. This is the same nav as in the posts. Please see the example in the private content section.
Best regards,
Jorrit
December 6, 2017 at 12:10 pm #885529Hi Jorrit,
I got access denied on that link.
Best regards,
VictoriaDecember 6, 2017 at 3:25 pm #885611Hi Victoria,
See the following link.
Regards,
Jorrit
December 13, 2017 at 6:04 am #888214Hi,
Why did you add the ‘avia_post_nav_settings’ in the supports arguments? Please replace the filter with the following code.
/* Change portfolio post type settings */ add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod'); function avf_portfolio_cpt_args_mod($args) { $args['supports'][] = 'page-attributes'; return $args; }
Best regards,
IsmaelJanuary 9, 2018 at 2:00 am #895047Hi Ismael,
Thanks for your answer. I’m sorry I didn’t send a reaction sooner. Some personal stuff came up.
What do you mean with “supports arguments”? I added your code in the functions.php, but nothing happened. Can you explain?
Best regards,
Jorrit
January 9, 2018 at 5:20 am #895084Hi,
Please check the following line.
$args[‘supports’] = array(‘title’,’thumbnail’,’excerpt’,’editor’,’comments’, ‘page-attributes’, ‘avia_post_nav_settings’);
The “avia_post_nav_settings” is not a valid parameter. Please use the new code above then check one of the portfolio items. Look for the “Page Attribute” box.
Best regards,
IsmaelJanuary 10, 2018 at 10:30 pm #895829Hello Ismael,
I removed the old code and added yours. Now the post navigation is back, but the page attribute option in the portfolio items is gone. Is there a way to have both?
Regards,
Jorrit
January 11, 2018 at 8:14 am #896032Hi,
The code above has nothing to do with the post navigation but it should enable the page-attribute. Please post the login details in the private field so that we check the portfolio items.
Best regards,
IsmaelJanuary 24, 2018 at 1:12 am #901778Hello Ismael,
But it seems like there is a connection between the two. At least in this installation. In the private section you’ll find the login credentials.
Hope to hear from you.
Best regards,
Jorrit
January 24, 2018 at 3:52 am #901853Hi,
We can’t modify the functions.php file from the Appearance > Editor panel. It is disbled. Please enable it or post the FTP details in the private field.
Best regards,
IsmaelJanuary 24, 2018 at 12:17 pm #902087Hi Ismael,
Hereby the ftp login.
Regards,
Jorrit
January 25, 2018 at 6:00 am #902565Hi,
I can’t get in via FTP. Please edit the functions.php file again and add the following filter.
/* Change portfolio post type settings */ add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod'); function avf_portfolio_cpt_args_mod($args) { $args['supports'][] = 'page-attributes'; return $args; }
This should enable the page attribute box or module of the portfolio items.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.