BBPress Stephen Garratt : Replies Created

Forum Replies Created

Viewing 10 posts - 11 through 20 (of 23 total)
  • Author
    Posts
  • in reply to: Hide address on tile but display on page #394460
    Stephen Garratt
    Participant

    Brilliant. All sorted. Thanks.

    in reply to: Hide address on tile but display on page #394382
    Stephen Garratt
    Participant

    Hi Steve,
    Thanks for your response. Speedy as always.
    I would be comfortable editing the PHP files. I can put them in the directory of my child theme?
    Please let me know which files I should look for and what I should change.
    thanks,
    Stephen

    in reply to: Maps broken after domain change #393903
    Stephen Garratt
    Participant

    Thanks!

    Of these two:

    Google Maps JavaScript API
    Google Maps Geocoding API

    I’d only enabled the second but not the first.

    All fixed now.

    in reply to: Maps broken after domain change #393899
    Stephen Garratt
    Participant

    I made an error in the first post

    the subdomain new.jungiananalysts.org.uk pints to http://www.jungiananalysts.org.uk/newsite

    in reply to: Maps broken after domain change #393873
    Stephen Garratt
    Participant
    This reply has been marked as private.
    in reply to: Maps broken after domain change #393870
    Stephen Garratt
    Participant

    more images

    in reply to: Filter on Custom Field #391790
    Stephen Garratt
    Participant

    Hi Steve,

    Thanks for your help. I tried the code:

    [connections meta_query='{"meta_query":{"0":{"key":"field_id_membership-cat","value":"supervisor","compare":"!="}}}']
    

    and it displays all the records that have some value in the custom field, but it doesn’t filter them depending on the value.

    I am not a coder and and kind learning as I go along. Below is the snippet I used to create my custom field. I want to have a directory page that only displays entries with the value “Analyst” and a separate page that only displays entries with the value “Supervisor”

    // Register the metabox and fields.
    add_action( 'cn_metabox', 'cn_register_custom_membership_category' );
    
    function cn_register_custom_membership_category() {
    
        $atts = array(
            'title'    => 'Your AJA Membership Category',
            'id'       => 'membership-cat',
            'context'  => 'normal',
            'priority' => 'core',
            'fields'   => array(
                array(
                    'name'       => 'Field Name',     
                    'show_label' => FALSE,             
                    'id'         => 'field_id_membership-cat', 
                    'type'       => 'checkboxgroup',  
                    'options'    => array(
                        'Candidate'   => 'Candidate',
                        'Analyst'   => 'Analyst',
                        'Supervisor' => 'Supervisor',
                        'Professional Member'  => 'Professional Member',
                    ),
                    'default'    => '',
                ),
            ),
        );
    
        cnMetaboxAPI::add( $atts );
    }
    
    Stephen Garratt
    Participant

    I resolved this by inserting this into the custom CSS:

    wp-bio-media-buttons {
    
        display: none;   
    }
    
    wp-notes-media-buttons {
    
        display: none;
    }
    
    • This reply was modified 9 years, 11 months ago by Steven Zahm. Reason: Fix CSS code
    in reply to: multiple categories for each entry #382248
    Stephen Garratt
    Participant

    Ignore this request. I found the documentation on how to add a checkbox field. Thanks.

    Stephen Garratt
    Participant

    thanks

Viewing 10 posts - 11 through 20 (of 23 total)