How to do a redirect from Categories

Guys,
hope you all can understand what i mean here.
SEMrush

let’s say currently I have these catergories, shop , store.

If I wanna remove all items means all the urls in the shop on my site , do a Redirect to Store which is another menu

how to go about it? means when people happen search the shop link on my sites any items before they will redirect to my store

i was preferring both shop and store under the Same site

 

magento2 – Can’t Save Categories Magento 2.3.5-p1

So i cannot save categories and attempting to do so produces below error in system.log:

    (2021-04-15 16:16:30) main.CRITICAL: Error: Call to a member function getAttributeCode() on bool in /home/sites/buzzcateringsupplies.com/public_html/vendor/magento/module-catalog/Observer/InvalidateCacheOnCategoryDesignChange.php:67
    Stack trace:
    #0 /home/sites/magento/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): MagentoCatalogObserverInvalidateCacheOnCategoryDesignChange->execute(Object(MagentoFrameworkEventObserver))
    ...
    ...

Strange as seems to work in my dev environment so seems some update have not occured in live database when running setup upgrade. I notice that my custom layout update attribute is empty like below:

enter image description here

So i am assuming there are potentially a few things wrong here.

Other solutions suggest running queries like below in to database:

INSERT INTO `eav_attribute` (`entity_type_id`, `attribute_code`, `attribute_model`, `backend_model`, `backend_type`, `backend_table`, `frontend_model`, `frontend_input`, `frontend_label`, `frontend_class`, `source_model`, `is_required`, `is_user_defined`, `default_value`, `is_unique`, `note`) VALUES

(4, 'custom_layout_update_file', NULL, 'Magento\Catalog\Model\Product\Attribute\Backend\LayoutUpdate', 'varchar', NULL, NULL, 'select', 'Custom Layout Update', NULL, 'Magento\Catalog\Model\Product\Attribute\Source\LayoutUpdate', 0, 0, NULL, 0, NULL),
(3, 'custom_layout_update_file', NULL, 'Magento\Catalog\Model\Category\Attribute\Backend\LayoutUpdate', 'varchar', NULL, NULL, 'select', 'Custom Layout Update', NULL, 'Magento\Catalog\Model\Category\Attribute\Source\LayoutUpdate', 0, 0, NULL, 0, NULL);

However not a big fan and would like to get to bottom of why this update has not run. The above does actually allow saving of categories however the dropdown is still empty. I’m also confused as thought in 2.3.4 and above the Layout update XML field should no longer be present…

Have searched around and cannot see a solution or explanation and hoping someone might be able to point me in the right direction. Have tried a few DB imports and updates since however same thing happens.

categories – Checking For a Specific Parent Category from Subcategory Page

I want to write some code that checks to see the current category, and then checks to see if it falls under 3 potential parent categories.

So if I had a setup like this:

Market
–food
—chocolate
–produce
Business
–industry
–commerce
Support
–contact
—help

If I clicked on chocolate, it would check recursively to see if the parent category is Market, Business, or Support, and then display the first level subcategories for that category.

So in the case of chocolate it would check and find “Market” and then display “Food, Produce” in the home subcategory listing.

This is the code I currently have in my theme:

if ( 'jetpack-portfolio' == $type ) {
        $categories_list = get_terms( 'jetpack-portfolio-type' );
    } elseif ( 'portfolio' == $type && ( !class_exists( 'Jetpack' ) || !post_type_exists( 'jetpack-portfolio' ) ) ) {
        $categories_list = get_terms( 'ct_portfolio' );
    } else {
        
        $currCat = get_queried_object()->term_id;
        
        $args = array(
            'parent' => $currCat
        );
        $categories_list = get_terms( 'category', $args );
    }

    if ( ! empty( $categories_list ) && ! is_wp_error( $categories_list ) ) {

        if ( ! is_home() ) {
            $term_id = get_queried_object()->term_id; 
        }

        $categories_list_display = '<section id="category-sidebar-filter" class="widget widget_categories"><h2 class="widget-title">Categories</h2><ul>';

            foreach ( $categories_list as $term ) {

                if ( !is_home() && $term->term_id == $term_id ) {
                    $active_class = 'cat-active';
                } else {
                    $active_class = '';
                }

                $categories_list_display .= '<li class="cat-item ' . esc_attr( $active_class ) . '"><a href="' . esc_url( get_term_link( $term ) ) . '">' . $term->name . '</a></li>';

            }

        $categories_list_display .= '</ul></section>';

        printf( $categories_list_display );

    }

wp query – How can I display a category page with future sub categories?

In a recent project I had to build a custom category page.

On this parent category, I display sub categories.(just thumbnail and title)

Some of these subcategories’posts will be published in future.
In subcategory page, I managed, thanks to the answer given here, to display future and published post together and add a special class to future posts, to add an overlay with a message (eg:”coming soon”).

Is it possible to do the same in a parent category with the subcategories thumbnail ?
-display all published and future subcategories (subcategories in which post will be published in future)
-add an overlay on it and make the “future” subcategorie unclickable”..

Thanks for your help..

Tags, categories or attributes for thematic item?

for a new website I need to use categories as geographic categories and I need to have something to indicate the pre-established thematic, just think about a news site with geographics categories full of posts with "economy" "chronicle" topic etc.

  • Categories: if I’ll use them I’ll have to find a way to separate the geographic cat from the thematic one in order to echo the second as topic in post listing.

  • Tag: the editor will no longer be able to use tags for other things, maybe seo etc

  • Attributes: it seems the best way, but how I can give to editor a default list instead of use them as text field in each post?

Any idea or suggestion?

Nested URL with categories, sub categories and pages in between

I’m a bit new to wordpress and would like to know how to achieve the following structure. Essentially I’m creating a website for a store that carries multiple products. For example:

site.com/brand/<brand1>/products/<product1>
site.com/brand/<brand1>/products/<product2>
site.com/brand/<brand2>/products/<product3>

also as part of the requirement:

site.com/brand loads a page that will display all available brands
site.com/brand/<brand1>/products loads a page that will display all available products for brand 1

Is there a way for me to achieve this without using any plugin? I prefer to create a custom code instead.

The Ultimate Guide to Over 600 Digital Marketing Tools/ 50 Categories & 827 Pages for $10

The Ultimate Guide to Over 600 Digital Marketing Tools/ 50 Categories & 827 Pages

Nowadays, the latest valuable tools have changed the internet marketing industry and can change your online presence for the best of your business management and growth. However, most people ignore the principal fact that successful modern marketers use proven and innovative digital marketing tools, while beginners use basic tools.

In this ultimate guide, you will discover the complete mega list of 600+ digital marketing tool overviews in one place designed for newbies and experienced marketers alike. (50+ categories/ 827 pages).

These useful tools are either the most popular & trusted tools, programs, systems, apps, software, automation, and platforms, or the highest-rated through the best reviews platforms, or recommended by online forums, influencers marketing, digital marketing courses, and certifications.

Because of concurrence, digital marketing strategies are entirely changing these days, and online marketing’s game will continue to get harder. If you plan to be successful, you will need to be massively profitable using advanced tools.

This guide is the only e-book created this year after extensive marketing research & years of profitable experience, giving you a report about what’s working right now! It exposes detailed insights about every tool’s definition, integrations, available features & benefits, possible integrations, pricing plans, alternatives, comparisons, etc.

It will help you build a successful online presence or increase your current business’s profits to change your life from the comfort of your own home like a pro using the right tools to target the right people at the right time & place!

”Online marketers of today have access to more tools than ever before… you should have a clear idea of which marketing tools from Google can help you reach your goals, whether that’s getting to the top of the search results or building brand awareness and connecting with your audience.’’ Nail Patel – Digital Marketing Expert.

Ready to drive success this year and become far more profitable while working less? Start implementing the magic of digital marketing tools. Turn knowledge into income.

.(tagsToTranslate)digital(t)marketin(t)online(t)marketing(t)internet(t)marketi

Default Expand Media Categories | NulledTeam UnderGround

Sorry, building a ‘template modification add-on’ to release is currently beyond me.. :X3:

For now, you can either edit the template xfmg_category_list_macros directly, or set up your own template modification.

Before:
View attachment 19532

After:
View attachment 19533

Find (2 instances):

Code: