Category as subdomain

Some of your resources are not loading properly, even on your main domain. Using Google Chrome, load your main page, open the Elements Panel by hitting the F12 key. In the panel that opens, look in the upper right corner. There will be a red X with a number next to it. That shows you … Read more

Loop Through Categories in Custom Field

The way you’re appending a foreach loop to a variable is not possible. Try this: $form_fields[“custom4”][“html”] = “<select name=”attachments[{$post->ID}][custom4]” id=’attachments[{$post->ID}][custom4]’>”; foreach ($categories as $category) { $form_fields[“custom4”][“html”] .= ‘<option value=”$category”>’ . $category . ‘</option>’; } $form_fields[“custom4”][“html”] .= “</select>”;

Help with SQL query, how to add taxonomie terms with value stored in options?

ok folks, i did it anothere way.. here’s how i did it: add_filter( ‘pre_get_posts’, function( $query ) { if( ! is_main_query() || ! is_post_type_archive() || ! $query->get( ‘section’, false ) ) return $query; global $wpdb; $section = $query->get( ‘section’ ); unset( $query->query[‘section’] ); unset( $query->query_vars[‘section’] ); $query->tax_query = false; $query->set( ‘tax_query’, false ); $cateroties = … Read more

Category Template for Custom Post Type

You should create a taxonomy template, not a category. I suspect that you have misunderstanding about categories, terms and custom taxonomies. I would suggest that you read my post on this particular subject here Study the taxonomy template hierarchy in the linked page in your question As for the 404 page, you most probably haven’t … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)