Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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

    #883068

    Anybody have an idea?

    #883078

    Hi 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,
    Victoria

    #883089

    Hi Victoria,

    Thanks that you’re willing to take a look. In the private content box, you’ll find the admin access.

    Regards,

    Jorrit

    #883333

    Hi Victoria or anybody else,

    Do you have any idea for a solution?

    Best Regards,

    Jorrit

    #884808

    Hello Support team,

    It has almost been a week ago that I opened this thread. Could anyone please advice me?

    Regards,

    Jorrit

    #885104

    Hi 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,
    Victoria

    #885105

    Hi 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,
    Victoria

    #885235

    Hi 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

    #885529

    Hi Jorrit,

    I got access denied on that link.

    Best regards,
    Victoria

    #885611

    Hi Victoria,

    See the following link.

    Regards,

    Jorrit

    #888214

    Hi,

    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,
    Ismael

    #895047

    Hi 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

    #895084

    Hi,

    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,
    Ismael

    #895829

    Hello 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

    #896032

    Hi,

    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,
    Ismael

    #901778

    Hello 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

    #901853

    Hi,

    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,
    Ismael

    #902087

    Hi Ismael,

    Hereby the ftp login.

    Regards,

    Jorrit

    #902565

    Hi,

    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

Viewing 20 posts - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.