David Hager

Forum Replies Created

Viewing 16 posts - 1 through 16 (of 16 total)
Aug 4, 2017 at 11:18 am
#61315
Member
David Hager
OP

Ok.. Then why if I say that certain user roles don’t have access to a specific download will they see the download in the archive? I would figure that then if I say in the settings “Block all” that they won’t see it in the archive

Aug 4, 2017 at 11:15 am
#61314
Member
David Hager
OP

Again: Again: Again: Again: could we have a export function you promised three years ago?

Mar 21, 2017 at 12:30 pm
#55327
Member
David Hager
OP
This reply has been marked as private.
Mar 15, 2017 at 6:47 pm
#55102
Member
David Hager
OP

I see that it is not possible, but I do want to have custom data displayed which include: custom taxonomies, custom column in the download table to display the language of the file, add a favourite button using the favoriteposts.com plugin and adding a video preview to all the video’s downloads which are hosted on Vimeo. How would I go about this when I can not use normal PHP? It can’t be that I am the only one who wants this?

Can I create some sort of function and load that using your weird shortcode method?

Thanks for the link, but like I told you I already am using the template overwrites in my child-theme

Mar 9, 2017 at 10:39 am
#54849
Member
David Hager
OP

I have PHP for example:

<?php if(get_field('item_number')): ?>
<h5><?php the_field('item_number') ?></h5>
<?php endif; ?>

Or this to add a favourite button that is add to all my different post types through my whole site.

<?php the_favorites_button($post_id, $site_id); ?>

But it all gets compiled to


<!--?php the_favorites_button($post_id, $site_id); ?-->
    </div>
    
    <!--?php if(get_field('item_number')): ?-->
      <h5><!--?php the_field('item_number') ?--></h5>
    <!--?php endif; ?-->

So to simplify my question, how do I write PHP like I write on any other template part in my theme

Mar 8, 2017 at 1:17 pm
#54811
Member
David Hager
OP

@Shaon thanks I had tested this once and it was working, could it be that this function would disable it self after an update?

Mar 6, 2017 at 9:27 am
#54715
Member
David Hager
OP
This reply has been marked as private.
Feb 28, 2017 at 8:56 am
#54425
Member
David Hager
OP
This reply has been marked as private.
Feb 26, 2017 at 9:40 am
#54355
Member
David Hager
OP

@shahriar that is no answer on the manual update process, which is really bad for security. And working on a staging/local server shouldn’t count against having multiple domains right?

Feb 25, 2017 at 10:55 am
#54332
Member
David Hager
OP
This reply has been marked as private.
Feb 25, 2017 at 10:55 am
#54331
Member
David Hager
OP

I did update, which is really hard btw, why is this? I am a big fan of [ACF Pro](https://www.advancedcustomfields.com) which updates just like any other plugin, seems like a better way of working, it sure is a lot saver. This way I can automate the update process.

The thing is I am constantly moving my site from dev to production and it seems like it screws with the license every time I move it. Why is this? I bought the plugin right? just let me use it where I want… It seems like an unnecessary DRM system that is not helping anyone.

Jan 18, 2017 at 8:06 am
#52751
Member
David Hager
OP

Again: Again: Any news on the csv export functionality? It would be really useful to be able to download all of the package data into a spreadsheet, make changes and then bulk import.
Best wishes
Mitchel

Edit: I just imported via the normal WordPress importer and this will lose all my connected download files.

Dec 12, 2016 at 11:53 am
#51783
Member
David Hager
OP

Yes I want to rename the following items


public function registerPostTypeTaxonomy()
    {
        $labels = array(
            'name' ► __('Downloads', 'wpdmpro'),
            'singular_name' ► __('Package', 'wpdmpro'),
            'add_new' ► __('Add New', 'wpdmpro'),
            'add_new_item' ► __('Add New Package', 'wpdmpro'),
            'edit_item' ► __('Edit Package', 'wpdmpro'),
            'new_item' ► __('New Package', 'wpdmpro'),
            'all_items' ► __('All Packages', 'wpdmpro'),
            'view_item' ► __('View Package', 'wpdmpro'),
            'search_items' ► __('Search Packages', 'wpdmpro'),
            'not_found' ► __('No Package Found', 'wpdmpro'),
            'not_found_in_trash' ► __('No Packages found in Trash', 'wpdmpro'),
            'parent_item_colon' ► '',
            'menu_name' ► __('Downloads', 'wpdmpro')

        );
};

But it would be nice to still be able to update the plugin.

Would the following work:

add_action( 'wp_loaded', 'wpse_19240_change_place_labels', 20 );

function wpse_19240_change_place_labels()
{
    global $wp_post_types;
    $p = 'wpdmpro';

    // Someone has changed this post type, always check for that!
    if ( empty ( $wp_post_types[ $p ] )
        or ! is_object( $wp_post_types[ $p ] )
        or empty ( $wp_post_types[ $p ]->labels )
        )
        return;

    // see get_post_type_labels()
    $wp_post_types[ $p ]->labels->name               = 'Library';
    $wp_post_types[ $p ]->labels->singular_name      = 'Library';
    $wp_post_types[ $p ]->labels->add_new            = 'Add item';
    $wp_post_types[ $p ]->labels->add_new_item       = 'Add new item';
    $wp_post_types[ $p ]->labels->all_items          = 'All items';
    $wp_post_types[ $p ]->labels->edit_item          = 'Edit item';
    $wp_post_types[ $p ]->labels->name_admin_bar     = 'Library';
    $wp_post_types[ $p ]->labels->menu_name          = 'Library';
    $wp_post_types[ $p ]->labels->new_item           = 'New item';
    $wp_post_types[ $p ]->labels->not_found          = 'No itemes found';
    $wp_post_types[ $p ]->labels->not_found_in_trash = 'No items found in trash';
    $wp_post_types[ $p ]->labels->search_items       = 'Search items';
    $wp_post_types[ $p ]->labels->view_item          = 'View item';
}
Nov 17, 2016 at 10:07 am
#51180
Member
David Hager
OP
This reply has been marked as private.
Nov 15, 2016 at 12:28 pm
#51071
Member
David Hager
OP

I have te same issue with Remote FTP. Any fix?

Nov 9, 2016 at 12:09 pm
#50893
Member
David Hager
OP

@Shahriar thanks what is the best way to move this to my child theme so that I don’t be overwriting the plugin and still can update?

Viewing 16 posts - 1 through 16 (of 16 total)