Articles of theme development

How to get DB options format without saving?

Using Unyson framework. I am getting theme options form data saved to a file. Was able to do that via ajax and JSON.stringify(form values in json format) problem I have is that the form data before it is saved via ajax is processed and for example the option that I see in form headers , […]

Change WordPress Resource URL

I have recently finished developing my latest WordPress theme for my own site and as usual I was going to use maxcdn and w3tc to make it faster! However my Hosting company have started up their own cdn service and I have got 3 months free to test it out! However it is not as […]

New to WordPress – Read the Codex, Other Docs; Still Confused

I’m new to web development and WordPress. I recently installed WordPress on my site. However, that is not the WordPress page; don’t get ahead of me! That page was created using Bootstrap. From my readings, I’ve learned that I need to create my own theme if I want to use that same styling that I […]

multiple html/css files for wordpress theme?

Ok so I am teaching myself how to code wordpress themes from scratch. I am using as an editor. I had a question. I have been looking at different tutorials at the template files they use, and most consist of only one style.css file, and then the php files. My question is this: When […]

Output unique taxonomy terms of posts inside a loop

I’m trying to dynamically populate a dropdown list of taxonomy terms (state is the taxonomy used) of a custom post type (product) on a search form. I can dynamically build the dropdown on it’s own, but I’m trying to set it up so that if multiple products are tagged with the same state the state […]

How to remove WP Title Tag?

I have addded a custom title tag for a custom post type in header.php like follows if(is_singular( ‘news’ )){ global $wp_query; $postid = $wp_query->post->ID; echo ‘<title>’. get_the_title() .’ of ‘. strip_tags(get_the_term_list( get_the_ID(), ‘genre’, ”, ‘ ‘, ” )) .’ read online</title>’; } This code works fine but I just do not know how to remove […]

License of the used Bootstrap Theme is not GPL compatible

I have made theme using material design html & css But my theme is no getting approve because License of the used Bootstrap Theme is not GPL compatible, see How can i solve this issue?

How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme?

This question already has an answer here: Issues enqueueing parent & child theme stylesheets with revised Codex method 1 answer

What is the correct way to include my new functions and scripts in WordPress?

To include new functions we can write them in the theme’s functions.php. But I have to write my own functions in a new file rather altering the theme’s function.php. I can write any custom js action in footer.php, but I need to write it in other file. How can I do this? Is there any […]

Sort and paginate custom post taxonomies alphabetically

I need to sort and paginate custom taxonomy post types. i have a page where i have next and previous link. on clicking next and previous link next or previous brand(custom taxonomy) should load. I have achieved this so far $terms = get_the_terms( get_the_ID(), ‘brand’ ); if($terms) { $BrandId=$terms[0]->term_id; $nextBrandId=$BrandId+1; $prevBranId=$BrandId-1; $next=get_term_by(‘id’, $nextBrandId, ‘brand’ ); […]