Transitioning Laravel App into WordPress (Portfolio Website)

Custom Post Type is always a preferable approach. To display all the projects in custom page template you need to learn few concepts for WP. 1.custom page template (To display your custom content) 2. WP_Query ( Fetch custom post type data with lot of advance query). For your reference please find the below documentation. https://developer.wordpress.org/reference/classes/wp_query/ … Read more

How to set acf color field as background color to product category

The style-attribute is not in the span-tag, but should be. Further you are using the php opening tag inside of the echo tag (copy-paste?). change ‘<span class=”termek-oldal-kategoria-teszt”> style=”background-color:<?php the_field(‘kollekcio_szine’); ?>”‘ to ‘<span class=”termek-oldal-kategoria-teszt” style=”background-color:’.get_field(‘kollekcio_szine’) . ‘”>’ (sorry, I would have commented, but I don’t have enough reputation)

How to retrieve a Menu Name by Menu Location with ACF fields

To retrieve the Menu Name: $menu_name = wp_get_nav_menu_name(“menu-products”); Then, using the menu name you can get data like the nav menu: $term = get_term_by(‘name’, $menu_name, ‘nav_menu’); And using the term taxonomy ID you can pull the ACF fields $menu_id = $term->term_taxonomy_id; $post_id = ‘term_’.$menu_id; $field = get_field(‘my_acf_field’, $post_id); To retrieve list of menu Items: $menu … Read more