Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Just to confirm, I too have had the warnings from this plugin. It won’t even let me download the plugin through WP.org, but has no problem doing so from the server. Hoping this gets resolved soon; the last thing I want is for my visitors to think my blog is loaded up with trojans. Great plugin, by the way!

    Thread Starter bmcconach

    (@bmcconach)

    Completely slipped my mind that the body class has specific tags for the cart and checkout areas; to solve this, I simply added the below custom CSS, in case anyone else needs this functionality:
    .woocommerce-checkout .addtoany_share_save_container, .woocommerce-cart .addtoany_share_save_container { display: none; }

    Thread Starter bmcconach

    (@bmcconach)

    Igor,

    Thank you so much for adding this feature! I greatly appreciate it and wish more developers would take suggestions like this and apply them to future builds.

    Thank you again!

    Thread Starter bmcconach

    (@bmcconach)

    Greg,

    Thank you for the clarification! I should have paid closer attention to what I was doing before changing up the URLs just for the “look” of it all.

    In order to keep my pretty links, I simply moved the Add and Manage pages out from under the Marketplace page and changed them to /add-listing and /manage-listings in case anyone else is looking for a similar solution.

    Thanks again, Greg!

    Thread Starter bmcconach

    (@bmcconach)

    Hi there Greg,

    First off, thank you for taking your time to respond to my inquiry! Greatly appreciate authors that are involved in the support of their plugins. Kudos to you!

    I do not have any other plugins/custom post types that work with the marketplace slug, just this one. Deactivating the plugin causes all three pages (Marketplace, Add, and Manage) to load fine, no 404s. When I was deactivating, at first the Add and Manage pages took me back to the homepage and then it dawned on me when I re-read your note about the WP router: I am currently using the Custom Slugs snippet provided on Github to change the “advert” and “advert-category” slugs. After removing that snippet and flushing the permalinks, I was able to reactivate and everything loads correctly.

    Is there no way I can have both “pretty” links as well as non-404 pages?
    Below you’ll find the snippet code I was using; perhaps there’s something in here that’s causing the error and/or missing to enable the functionality I’m trying to achieve?

    add_action("adverts_post_type", "customize_adverts_post_type", 10, 2);
    add_action("adverts_register_taxonomy", "customize_adverts_taxonomy", 10, 2 );
    
    function customize_adverts_taxonomy( $args, $type = null ) {
        if( $type != "advert_category" ) {
            return $args;
        }
        
        if(!isset($args["rewrite"])) {
            $args["rewrite"] = array();
        }
       
        $args["rewrite"]["slug"] = "marketplace";
        return $args;
    }
    function customize_adverts_post_type( $args, $type = null ) {
        if( $type != "advert" ) {
            return $args;
        }
        
        if(!isset($args["rewrite"])) {
            $args["rewrite"] = array();
        }
       
        $args["rewrite"]["slug"] = "marketplace/classified";
        return $args;
    }
    Thread Starter bmcconach

    (@bmcconach)

    Hello,

    Thanks for taking the suggestions and working on implementing them! Looking forward to the next release!

    Happy coding!

    Thread Starter bmcconach

    (@bmcconach)

    Incompatible custom plugin was found to be the culprit, remedied.

    Thread Starter bmcconach

    (@bmcconach)

    I was able to resolve this myself, albeit with a bit of hard coding:

    In social-articles-functions.php:

    Around Line 70, Find:

    if (empty($notification_already_sent) &&
                $savedPost->post_status == "publish" &&
                $savedPost->post_type == "post" &&
                !wp_is_post_revision($id)
            ):

    Add Below:

    $user = $savedPost->post_author;
            $disallowed_roles = array('editor', 'administrator'); // Set roles you don't want to show notifications for here
            if( !array_intersect($disallowed_roles, $user->roles ) ) {

    Around Line 112, Find:
    update_post_meta($id, 'notification_already_sent', true);
    Add Below:
    }

    This will prevent any user posts with the roles listed in $disallowed_roles from showing up in notifications for others.

    Thread Starter bmcconach

    (@bmcconach)

    Brajesh,

    Thank you for getting back to me! I have used your suggestion and managed to get the fields aligned just how I wanted.

    For anyone else who may be looking for this solution, here is the CSS I used with my particular theme:

    .editfield.field_type_birthdate .datebox-selects {
      -ms-box-orient: horizontal;
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -moz-flex;
      display: -webkit-flex;
      display: flex;
    }
    .editfield.field_type_birthdate .datebox-selects select:nth-of-type(1) { order: 2; }
    .editfield.field_type_birthdate .datebox-selects label:nth-of-type(1) {	order: 2; }
    .editfield.field_type_birthdate .datebox-selects select:nth-of-type(2) { order: 1; }
    .editfield.field_type_birthdate .datebox-selects label:nth-of-type(2) {	order: 1; }
    .editfield.field_type_birthdate .datebox-selects select:nth-of-type(3) { order: 3; }
    .editfield.field_type_birthdate .datebox-selects label:nth-of-type(3) {	order: 3; }

    Thank you, @kalmika!

    Note that this solution is for users of The Events Calendar plugin.

    I adjusted the price to grab from the event itself and thought someone might find this time-saving.

    $data->offers = array();
    $data->offers['@type'] = 'Offer';
    $data->offers['price'] = tribe_get_cost( $post_id ); // Using this to output ticket cost
    $data->offers['availability'] = "http://schema.org/InStock";
    $data->offers['url'] = "https://domain.tld";
    $data->offers['priceCurrency'] = "USD";
    $data->offers['validFrom'] = "2018-12-31"; //random old date
    $data->performer = array();
    $data->performer ['@type'] = "Organization";
    $data->performer['name'] = "Organization Name";
    Thread Starter bmcconach

    (@bmcconach)

    Brajesh,

    Thank you so very much for your assistance! The code you provided gave me exactly the desired effect I was hoping to achieve. I couldn’t be more happy! Major kudos for an excellent plugin and support!

    Best regards!

    Thread Starter bmcconach

    (@bmcconach)

    After a bit of Googling, I discovered the add_rewrite_rule function that can be placed in my functions.php file. Using this, I was able to achieve my goal to an extent without touching .htaccess with the below code:

    function custom_rewrite_rule() {
    	add_rewrite_rule('^main-page/sub-page/([^/]*)/([^/]*)/?', 'index.php?page_id=1234&$=matches[1]&=$matches[2]','top');
    }
    add_action('init', 'custom_rewrite_rule');

    The issue I’m running into at this point is that the page will not pick up the parameter from the redirect. When loading the page with the new method, the [ifurlparam param=”value”] displays a blank page, not getting the parameter from the redirect. If I load the page using the non-SEO-friendly URL, it loads just fine.

    Any thoughts on this would be greatly appreciated!

    • This reply was modified 7 years, 1 month ago by bmcconach.
    Thread Starter bmcconach

    (@bmcconach)

    Samuel,

    Thank you so much for your prompt reply!

    Using your code, I was able to achieve the desired effect. I did modify it slightly so if my site’s name changes in the future, it will update automatically.

    That code, for anyone interested:

    add_filter('bbpm_get_dynamic_page_title', function($title){
        return "{$title}".get_bloginfo( 'name' );
    }, 10);

    Again, thank you for such a quick response and an amazing plugin!

    • This reply was modified 7 years, 11 months ago by bmcconach.
    Thread Starter bmcconach

    (@bmcconach)

    Thanks so much! I went on a hunt myself, but must have missed that the first time over.

    Have a great one!

    • This reply was modified 8 years, 1 month ago by bmcconach.
    Thread Starter bmcconach

    (@bmcconach)

    Little nudge. 🙂

Viewing 15 replies - 1 through 15 (of 20 total)