Forum Replies Created

Viewing 15 replies - 1 through 15 (of 58 total)
  • Thread Starter nicallen

    (@nicallen)

    Hi Yes you have understood correctly. Shame. I really need to include the post title. Is there a way to input a single field with the post title added manually on each post. I have found a method using a drop down select menu but my client is not keen. Click the button ‘Condition Report’ in the example below to view. https://amosachilles.com/the-artist-the-artwork-title-1988/ Kind regards Nick

    Thread Starter nicallen

    (@nicallen)

    Thank you.

    Thread Starter nicallen

    (@nicallen)

    Hi I sitekit has began to record traffic. Where would i look to see how often external links were clicked?

    Thread Starter nicallen

    (@nicallen)

    Thank you, i can see in my WP dashboard and Site Kit The Tag is connected, It has an Account number and Container ID present. Site Kit is still saying Analytics data is not yet available… check back later. I guess that is OK as I only just installed it. nd the site has no vistors ort external urls to track yet. I think it should begin to work, when i input some links and test further. The theme Extra from Divi that I use does have a facility to insert adSense code, but I think the above should suffice. Thanks again. Best.

    Thread Starter nicallen

    (@nicallen)

    Thank you I have set up Tag Manager in my google account. And installed the header and body code. Does that do the listening or is the listener as separate action required by me. Thanks

    Thread Starter nicallen

    (@nicallen)

    Thank you so much. I don’t need to track the links only count how many clicks. Best.

    Thread Starter nicallen

    (@nicallen)

    Thanks for taking your time to explain this. I’ll use a plugin instead. Best

    Thread Starter nicallen

    (@nicallen)

    How would I extend this to include subscribers as well as authors, but still allow them to post?
    Would this work?

    $subRole = get_role( ‘author’ );
    $subRole->add_cap( ‘read_private_posts’ );
    $subRole->add_cap( ‘read_private_pages’ );
    // Redirect to home page on login
    function loginRedirect( $redirect_to, $request_redirect_to, $user ) {
    if ( is_a( $user, ‘WP_User’ ) && $user->has_cap( ‘edit_posts’ ) === true ) {
    return get_bloginfo( ‘siteurl’ );
    }
    return $redirect_to; }

    add_filter( ‘login_redirect’, ‘loginRedirect’, 10, 3 );

    Thread Starter nicallen

    (@nicallen)

    I found a snippet that works as the Divi Child functions file. Thanks
    <?php

    function my_et_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_script( ‘divi’, get_stylesheet_directory_uri() . ‘/js/scripts.js’, array( ‘jquery’, ‘divi-custom-script’ ), ‘0.1.1’, true );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_et_enqueue_styles’ );

    /* === Add your own functions below this line ===
    * ——————————————– */
    // Allow subscribers to see Private posts and pages

    $subRole = get_role( ‘subscriber’ );
    $subRole->add_cap( ‘read_private_posts’ );
    $subRole->add_cap( ‘read_private_pages’ );
    // Redirect to home page on login
    function loginRedirect( $redirect_to, $request_redirect_to, $user ) {
    if ( is_a( $user, ‘WP_User’ ) && $user->has_cap( ‘edit_posts’ ) === false ) {
    return get_bloginfo( ‘siteurl’ );
    }
    return $redirect_to; }

    add_filter( ‘login_redirect’, ‘loginRedirect’, 10, 3 );

    Thread Starter nicallen

    (@nicallen)

    Dear Diana,

    Sorted. Changing the image did not help. I tried reducing the image size, no joy, but then I changed the crop to be square and hey presto! it works. I guess I can only use square images. Thanks for you help.

    Thread Starter nicallen

    (@nicallen)

    Hi Diana,
    It is only my new product which is the last item in the shop list. It is a a shop display photograph. Best.

    Thread Starter nicallen

    (@nicallen)

    Hi I installed it to test it for you. It installed OK and loaded but it only recognised the newly created categories, with (Custom Post Type UI) not the WP original products categories, trade and retail. Had it seen these, I think it would be ok. I also disabled protected categories and it still did not see the original cats. Hope this helps Best.

    Thread Starter nicallen

    (@nicallen)

    Dear Michael

    Thank you, you have solved it for me. Everything is behaving as I wanted. So simple, I love it. Best Nick.

    Thread Starter nicallen

    (@nicallen)

    Hi Michael
    Yes it is when editing a product, then I see the message.
    I have not created terms yet.
    I thought I was creating categories, yet they behave like, and are labelled as tags?

    Best Nick.

    Thread Starter nicallen

    (@nicallen)

    Thank you Michael here is the code. Best Nick.

    {“gifts_and_cards”:{“name”:”gifts_and_cards”,”label”:”Gifts and Cards”,”singular_label”:”Gifts and Cards”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”false”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”1″,”rewrite_hierarchical”:”0″,”show_admin_column”:”false”,”show_in_rest”:”true”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:””,”all_items”:””,”edit_item”:””,”view_item”:””,”update_item”:””,”add_new_item”:””,”new_item_name”:””,”parent_item”:””,”parent_item_colon”:””,”search_items”:””,”popular_items”:””,”separate_items_with_commas”:””,”add_or_remove_items”:””,”choose_from_most_used”:””,”not_found”:””,”no_terms”:””,”items_list_navigation”:””,”items_list”:””},”meta_box_cb”:””,”object_types”:[“product”]},”whats_the_occasion”:{“name”:”whats_the_occasion”,”label”:”What’s the Occasion”,”singular_label”:”What’s the Occasion”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”false”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”1″,”rewrite_hierarchical”:”0″,”show_admin_column”:”false”,”show_in_rest”:”true”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:””,”all_items”:””,”edit_item”:””,”view_item”:””,”update_item”:””,”add_new_item”:””,”new_item_name”:””,”parent_item”:””,”parent_item_colon”:””,”search_items”:””,”popular_items”:””,”separate_items_with_commas”:””,”add_or_remove_items”:””,”choose_from_most_used”:””,”not_found”:””,”no_terms”:””,”items_list_navigation”:””,”items_list”:””},”meta_box_cb”:””,”object_types”:[“product”]},”personality”:{“name”:”personality”,”label”:”Personalities”,”singular_label”:”Personality”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”false”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”1″,”rewrite_hierarchical”:”0″,”show_admin_column”:”false”,”show_in_rest”:”true”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:””,”all_items”:””,”edit_item”:””,”view_item”:””,”update_item”:””,”add_new_item”:””,”new_item_name”:””,”parent_item”:””,”parent_item_colon”:””,”search_items”:””,”popular_items”:””,”separate_items_with_commas”:””,”add_or_remove_items”:””,”choose_from_most_used”:””,”not_found”:””,”no_terms”:””,”items_list_navigation”:””,”items_list”:””},”meta_box_cb”:””,”object_types”:[“product”]},”subject_artwork”:{“name”:”subject_artwork”,”label”:”Subject Artworks”,”singular_label”:”Subject Artwork”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”false”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”1″,”rewrite_hierarchical”:”0″,”show_admin_column”:”false”,”show_in_rest”:”true”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:””,”all_items”:””,”edit_item”:””,”view_item”:””,”update_item”:””,”add_new_item”:””,”new_item_name”:””,”parent_item”:””,”parent_item_colon”:””,”search_items”:””,”popular_items”:””,”separate_items_with_commas”:””,”add_or_remove_items”:””,”choose_from_most_used”:””,”not_found”:””,”no_terms”:””,”items_list_navigation”:””,”items_list”:””},”meta_box_cb”:””,”object_types”:[“product”]}}

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