New Landing How can we help? Themeforest Theme Support Dante does DANTE support custom post types?

Viewing 15 posts - 16 through 30 (of 43 total)
  • Posted in: Dante
  • #79653
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @msc-val

    If you let me know where you got to and what didn’t work, I’ll likely be able to assist ๐Ÿ™‚

    I’d much rather spend a few minutes more of my time where needed, than you have to go through the process of starting again! It’s probably worth a little of my time anyway, as will mean I can document it further.

    – Ed

    #79655
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #79659
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #79668
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Apologies, original code was incorrect, and looks like you had some errors from your changes too. All you need to change is the functions in your functions file to:

    function register_new_pbassets() {
    require_once( get_stylesheet_directory() . '/article.php' );
    }
    if (is_admin()) {
    add_action('admin_init', 'register_new_pbassets', 2);
    }
    if (!is_admin()) {
    add_action('wp', 'register_new_pbassets', 2);
    }

    Then the asset will show!

    – Ed

    #79672
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #79846
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #79851
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    @msc-val – you see the line where it’s running an sf_article_items() function, you’ll need to replace that with the output for your articles. If you want to copy the blog functions, you’ll find that in /swift-framework/sf-blog.php

    – Ed

    #79893
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #79903
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You were close! Just shouldn’t have commented out the function call, and should have pasted the function above that. Have attached the changes – hopefully that sorts it for you.

    – Ed

    #79936
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #80007
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #80008
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Line 99:

    'post_type' => 'post',

    That’s hopefully all that you missed!

    – Ed

    #80010
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #80022
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Great news! Glad I could help and save you searching for another theme! ๐Ÿ™‚

    – Ed

    #80023
    msc-val
    Member
    Post count: 71

    You’re the BEST. Great support!!!

Viewing 15 posts - 16 through 30 (of 43 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register