• gesundegeschenke

    (@gesundegeschenke)


    Hi,

    1. I assigned my products to multiple categories, but always assigned a primary category for each product. (I’m working with Woocommerce and Yoast on shoppingcard-theme.) Now the breadcrumbs don’t show the primary category, but the one that comes first alphabetically. how can I assign the correct primary category?
    2. For products and pages, the breadcrumbs are at the top, above the image and title. that’s right. but for posts they are under the image under the heading. can I change that?
    ` wp-core

    version: 6.6.1
    site_language: de_DE
    user_language: de_DE
    timezone: Europe/Berlin
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 3
    dotorg_communication: true wp-paths-sizes

    wordpress_path: /home/www/wordpress2
    wordpress_size: loading…
    uploads_path: /home/www/wordpress2/wp-content/uploads
    uploads_size: loading…
    themes_path: /home/www/wordpress2/wp-content/themes
    themes_size: loading…
    plugins_path: /home/www/wordpress2/wp-content/plugins
    plugins_size: loading…
    fonts_path: /home/www/wordpress2/wp-content/uploads/fonts
    fonts_size: loading…
    database_size: loading…
    total_size: loading… wp-dropins (2)

    advanced-cache.php: true
    object-cache.php: true wp-active-theme

    name: ShoppingCart (shoppingcart)
    version: 1.2.5
    author: Theme Freesia
    author_website: https://themefreesia.com
    parent_theme: none
    theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, menus, custom-logo, gutenberg, align-wide, responsive-embeds, customize-selective-refresh-widgets, html5, post-formats, custom-background, editor-style, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, custom-header, widgets
    theme_path: /home/www/wordpress2/wp-content/themes/shoppingcart
    auto_update: Aktiviert wp-themes-inactive (1)

    Twenty Twenty-Four: version: 1.2, author: Das WordPress-Team, Automatische Aktualisierungen deaktiviert wp-mu-plugins (1)

    WP STAGING Optimizer: version: 1.5.6, author: WP STAGING wp-plugins-active (39)

    Affiliate Coupons: version: 1.6.10, author: Affiliate Coupons, Automatische Aktualisierungen deaktiviert
    Affiliate Power: version: 2.4.0, author: Jonas Breuer, Automatische Aktualisierungen deaktiviert
    Affiliaterg - Affiliate Products Review Blocks: version: 2.1.3, author: Zakaria Binsaifullah, Automatische Aktualisierungen deaktiviert
    Antispam Bee: version: 2.11.6, author: pluginkollektiv, Automatische Aktualisierungen deaktiviert
    Auto Image Attributes From Filename With Bulk Updater: version: 4.4, author: Arun Basil Lal, Automatische Aktualisierungen deaktiviert
    BIALTY - Bulk Image Alt Text (Alt tag, Alt Attribute) with Yoast SEO + WooCommerce: version: 2.0.2, author: Pagup, Automatische Aktualisierungen deaktiviert
    Breadcrumb NavXT: version: 7.3.1, author: John Havlik, Automatische Aktualisierungen deaktiviert
    Cleanup Action Scheduler: version: 1.2.1, author: Media Uganda, Automatische Aktualisierungen deaktiviert
    Code Snippets: version: 3.6.5.1, author: Code Snippets Pro, Automatische Aktualisierungen deaktiviert
    Complianz - Terms and Conditions: version: 1.2.8, author: Really Simple Plugins, Automatische Aktualisierungen deaktiviert
    Complianz | GDPR/CCPA Cookie Consent: version: 7.1.0, author: Really Simple Plugins, Automatische Aktualisierungen deaktiviert
    Easy Table of Contents: version: 2.0.68.1, author: Magazine3, Automatische Aktualisierungen deaktiviert
    Imagify: version: 2.2.2, author: Imagify – Optimize Images & Convert WebP & Avif, Automatische Aktualisierungen deaktiviert
    Internal Link Juicer: version: 2.24.4, author: Internal Link Juicer, Automatische Aktualisierungen deaktiviert
    Jetpack: version: 13.7, author: Automattic, Automatische Aktualisierungen deaktiviert
    Link Whisper Free: version: 0.7.7, author: Link Whisper, Automatische Aktualisierungen deaktiviert
    MailPoet: version: 5.0.0, author: MailPoet, Automatische Aktualisierungen deaktiviert
    Manually Approved Reviews for WooCommerce: version: 1.3.0, author: Tim Eckel, Automatische Aktualisierungen deaktiviert
    Matomo Analytics - Ethical Stats. Powerful Insights.: version: 5.1.2, author: Matomo, Automatische Aktualisierungen deaktiviert
    Max Mega Menu: version: 3.3.2, author: megamenu.com, Automatische Aktualisierungen deaktiviert
    Performance Lab: version: 3.4.0, author: WordPress Performance Team, Automatische Aktualisierungen deaktiviert
    Redirection: version: 5.5.0, author: John Godley, Automatische Aktualisierungen deaktiviert
    Responsive Sidebar: version: 1.2.2, author: Processby, Automatische Aktualisierungen deaktiviert
    Schema & Structured Data for WP & AMP: version: 1.35, author: Magazine3, Automatische Aktualisierungen deaktiviert
    Simple Author Box: version: 2.54, author: WebFactory Ltd, Automatische Aktualisierungen deaktiviert
    Spectra: version: 2.15.1, author: Brainstorm Force, Automatische Aktualisierungen deaktiviert
    UpdraftPlus - Backup/Restore: version: 1.24.4, author: UpdraftPlus.Com, DavidAnderson, Automatische Aktualisierungen deaktiviert
    WooCommerce: version: 9.2.2, author: Automattic, Automatische Aktualisierungen deaktiviert
    WP 404 Auto Redirect to Similar Post: version: 1.0.5, author: hwk-fr, Automatische Aktualisierungen deaktiviert
    WP File Manager: version: 8.0, author: mndpsingh287, Automatische Aktualisierungen deaktiviert
    WP Rocket: version: 3.16.4, author: WP Media, Automatische Aktualisierungen deaktiviert
    WP Rocket | Change Remove Unused CSS Parameters: author: WP Rocket Support Team, version: (undefined), Automatische Aktualisierungen deaktiviert
    WP Rocket | Exclude sitemap from Preload: author: WP Rocket Support Team, version: (undefined), Automatische Aktualisierungen deaktiviert
    WPS Hide Login: version: 1.9.16.7, author: WPServeur, NicolasKulka, wpformation, Automatische Aktualisierungen deaktiviert
    wpShopGermany - IT-Recht Kanzlei: version: 1.9, author: maennchen1.de, Automatische Aktualisierungen deaktiviert
    WP STAGING WordPress Backup Plugin - Backup Duplicator & Migration: version: 3.8.3, author: WP-STAGING, WPStagingBackup, Automatische Aktualisierungen deaktiviert
    WP YouTube Lyte: version: 1.7.23, author: Frank Goossens (futtta), Automatische Aktualisierungen deaktiviert
    YITH WooCommerce Wishlist: version: 3.37.0, author: YITH, Automatische Aktualisierungen deaktiviert
    Yoast SEO: version: 23.3, author: Team Yoast, Automatische Aktualisierungen deaktiviert wp-plugins-inactive (4)

    Conditional Menus: version: 1.2.5, author: Themify, Automatische Aktualisierungen deaktiviert
    Perfect Brands WooCommerce: version: 3.4.2, author: QuadLayers, Automatische Aktualisierungen deaktiviert
    Temporary Login Without Password: version: 1.8.3, author: StoreApps, Automatische Aktualisierungen deaktiviert
    WPCode Lite: version: 2.2.1, author: WPCode, Automatische Aktualisierungen deaktiviert code-snippets (15)

    snippet-6: name: Produktz?hler in Kategorien entfernen, scope: global, modified: 2022-04-21 18:39:02
    snippet-10: name: Revisionen deaktivieren, scope: global, modified: 2022-08-07 17:36:52
    snippet-28: name: Das Wort Beschreibung l?schen, scope: global, modified: 2022-09-15 06:00:47
    snippet-31: name: No self pingbacks [DUPLIZIEREN], scope: global, modified: 2023-03-28 09:38:23
    snippet-33: name: Gutenbergbl?cke in Woocommerce ausführen Update Mai 2023, scope: admin, modified: 2023-05-16 12:48:15
    snippet-35: name: topblogs.de, scope: content, modified: 2023-12-04 12:58:44
    snippet-36: name: Deutscher Firmenindex, scope: footer-content, modified: 2023-12-14 09:54:54
    snippet-37: name: Top Blog, scope: footer-content, modified: 2023-12-18 17:07:28
    snippet-40: name: favicon in bing, scope: content, modified: 2024-03-10 14:01:06
    snippet-41: name: Warenkorb nicht anzeigen, scope: content, modified: 2024-06-03 16:21:34
    snippet-42: name: Warenkorb nicht anzeigen, scope: content, modified: 2024-06-06 06:18:30
    snippet-43: name: schriftgr??e produkt startseite, scope: content, modified: 2024-06-06 06:24:01
    snippet-55: name: footer, scope: content, modified: 2024-07-24 17:25:40
    snippet-56: name: Mailpoet Google Fonts deaktivieren, scope: global, modified: 2024-08-05 08:51:11
    snippet-60: name: Black Friday Vorlage Spectra automatisch einfügen, scope: global, modified: 2024-08-17 07:59:14 wp-media

    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1691
    imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: 1
    post_max_size: 150M
    upload_max_filesize: 150M
    max_effective_size: 150 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 251 GB
    imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    imagick::RESOURCETYPE_FILE: 768
    imagick::RESOURCETYPE_MAP: 251 GB
    imagick::RESOURCETYPE_MEMORY: 126 GB
    imagick::RESOURCETYPE_THREAD: 1
    imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
    ghostscript_version: 9.53.3 wp-server

    server_architecture: Linux 5.10.0-26-amd64 x86_64
    httpd_software: Apache
    php_version: 8.1.26 64bit
    php_sapi: apache2handler
    max_input_variables: 1000
    time_limit: 140
    memory_limit: 512M
    max_input_time: -1
    upload_max_filesize: 150M
    php_post_max_size: 150M
    curl_version: 7.74.0 OpenSSL/1.1.1w
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true
    current: 2024-08-23T13:16:42+00:00
    utc-time: Friday, 23-Aug-24 13:16:42 UTC
    server-time: 2024-08-23T15:16:38+02:00 wp-database

    extension: mysqli
    server_version: 10.11.4-MariaDB-1:10.11.4+maria~deb11-log
    client_version: mysqlnd 8.1.29
    max_allowed_packet: 134217728
    max_connections: 350 wp-constants

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/www/wordpress2/wp-content
    WP_PLUGIN_DIR: /home/www/wordpress2/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Nicht definiert
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined wp-filesystem

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: not writable
    mu-plugins: writable jetpack

    site_id: 197647198
    ssl_cert: No
    time_diff: undefined
    version_option: 13.7:1723293482
    old_version: 13.7:1723293482
    public: Public
    master_user: #1 chef1
    is_offline_mode: off
    is_offline_mode_constant: off
    current_user: #1 chef1
    tokens_set: Blog User
    blog_token: REMu!AI)wXpFqKh!xZ%1P1w#QSMg$es user_token: d&380J#qL4QQ2C^u)o9GQmrHcM@Y964
    version: 13.7
    jp_plugin_dir: /home/www/wordpress2/wp-content/plugins/jetpack/
    plan: free
    protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
    full_sync: {"started":"Wed, 21 Aug 2024 11:35:53 +0000","finished":"Wed, 21 Aug 2024 11:36:09 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":1,"sent":1,"finished":true,"last_sent":"1"},"network_options":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[1],"network_options":true}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: undefined
    full_sync_lag: 0 seconds
    idc_urls: {"home":"https:\/\/www.gesunde-geschenke.com","siteurl":"https:\/\/www.gesunde-geschenke.com","WP_HOME":"","WP_SITEURL":""}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    The “Primary Category” feature is not something that is part of WordPress itself (Yoast is adding that). You’ll need extra code to tell Breadcrumb NavXT to use the primary category. You can use the bcn_pick_post_term filter to do this, there are also plugins that exist that allow you to specify what term/category Breadcrumb NavXT uses (Order Bender, and Breadcrumb NavXT Paths).

    As for where the breadcrumb trail is showing up on your site, that is likely due to differences in how the theme handles posts and pages. It looks like in both cases the breadcrumb trail is placed below the title, it’s just on posts the title is below the post image while on pages it is above the post image. You’ll likely need to modify your theme/the location where bcn_display() is called within the theme to get the breadcrumb trail where you want.

    Thread Starter gesundegeschenke

    (@gesundegeschenke)

    Hi,

    Thanks for the suggestions. I installed Order-Bender and it works great!
    Is it true that I can only change this setting manually? Or is there a way to apply this to all products (moren than 1000)?

    I didn’t get any further with the code. I tried the following:

    if (!function_exists(‘my_custom_breadcrumb_primary_category’)) {
    function my_custom_breadcrumb_primary_category($term, $id, $type, $taxonomy) {
    // Prüfen, ob die Taxonomie ‘category’ ist und ob Yoast SEO aktiv ist
    if($taxonomy === ‘category’ && class_exists(‘WPSEO_Primary_Term’)) {
    // Abrufen der prim?ren Kategorie von Yoast für den aktuellen Post
    $primary_term = new WPSEO_Primary_Term(‘category’, $id);
    $primary_term_id = $primary_term->get_primary_term();

            // Falls eine prim?re Kategorie gefunden wurde, diese zurückgeben
            if ($primary_term_id) {
                $term = get_term($primary_term_id);
            }
        }
    
        // Rückgabe der prim?ren Kategorie oder des ursprünglichen Terms, falls keine prim?re Kategorie gefunden wurde
        return $term;
    }
    
    // Anwenden des Filters mit den vier Parametern
    add_filter('bcn_pick_post_term', 'my_custom_breadcrumb_primary_category', 10, 4);

    }

    (This is not displayed correctly?)

    I was able to rule out a conflict with other plugins by deactivating all plugins with the exception of Woocommerce, Yoast and Breadcrumb NavXT.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.