WordPress: don't show 404 when no posts exist

Currently there is a bug in WordPress if you have a Posts Page set under: Settings->Reading->A Static Page->Posts Page If there are posts, than the page (e.g. with a slug called news) displays...

Is It Possible to Alter the Displayed URL from the Actual URL?

I posted a question the other day about how to change the displayed URL on a Wordpress-generated page, specifically from something like "mysite.com/?cat=3" to just "mysite.com". I got a few...

Filter and Query my Products (custom post type) by their Custom Taxonomy

So my WordPress CMS has come quite a long way (and I've learned quite a bit about WordPress. I've created a custom post type called Products which is here: add_action( 'init',...

Make the Height of Masonry Boxes Fixed size

the website is the following: http://smokingdesigners.com I have a problem with the masonry view of my pages. I have recently changed my theme to a new one and my old theme used to add...

How can I rewrite custom post types slugs based on language?

I'm building a website with WordPress using it more like a CMS then a blogging platform. I made plenty use of custom post types and custom taxonomies. Last but not least I made it multilingual...

Woocommerce Product variations not saving

Am using woocommerce I justover write one function using hook because I need to calculate the price of each product using a formula so what I did is I just copy the original function modified it...

Removed header and footers outside of wrap, now having trouble styling logo

http://charlestonduilawfirm.com/ A client wanted the header to span the width of the page. It appears I was able to do so partially, but the header background color isn't extending all the way...

update wp_set_post_terms not working in wordpress

Actually I am using wp job manager plugin. The plugin has only one custom taxonomy Here is the code to register taxonomy in plugin register_taxonomy( "job_listing_type", array(...

Add custom slug to link for WP default posts

How can I modify default posts permalink? E.g. www.example.com/post-slug/ i need to change to www.example.com/blog/post-slug/ I need this only for default wp posts, I have achieved the same with...

After clicking Fb share button the pop up does't appear. What appead is fb_dialog_box

please see the demo problem at Here i have created my own plugin that can make the video be seen when user share the video. I have made three files , one is hook, the next one is class and other...

How to restrict access to WordPress content in .NET/PHP application

I have a WordPress site for a small journal. It is hosted in IIS on an Azure VM and uses MSSQL rather than MySQL. Although much of the content is freely available I want to restrict access to...

How to replace the custom post slug by the category name in wordpress

I need to change the permalink struture of my custom post "product" the default one is Domain_name.com./product/product_name I need to change it to : Domain_name.com./category_name/product_name i...

Wordpress Using Ajax Jquery to reference custom post thumbnail

Ok, so I am basically trying to populate a form with a featured image from a custom post type based on the input of the form field (in this case - the slug for the custom post type). I can't seem...

How to set wordpress menu if you have menu arrays

Let's say I have an array that I got by outputting wp_get_nav_menus() (and some modifications), and I want to import it to a new installation of wordpress. The array looks like this (let's call it...

How to count words in real time with html stripped in wp_editor?

I am trying to count words entered into the default post editor (wp_editor). The reason is that the default count counts all words including html tags. Thus it isn't a real count. I have a working...

when updating user email is blank in wordpress

Please can anyone help, When I update the user from word press admin section user email field is showing blank after the successfully update. I do not understand why this is happening. Please...

Modify rewrite slug of default category(taxonomy), wordpress

I want to change slug of default registered taxonomy, WordPress. wordpress/wp-admin/edit-tags.php?taxonomy=category = it lists the categories of posts.. and I want to change rewrite slug of these...

Wordpress and custom slug

I'm trying to reach following situation in WordPress: slug names can be duplicated between authors (one author can't have same slug twice of course) permalink should be like...

Display value from checkbox in console.log

Well this is probably an easy question but I've been figure this one out. I would like to display the value of a checkbox in the console.log so I can use it to fire a AJAX call. But the values of...

How to add owl carousel to front page

I'm using a pre made theme for my site. I would like to add an owl carousel to the top of my front page that displays the most popular posts from the last month on my site. The pre made theme...

My WordPress page is bugging after migration

I recently changed my site's host provider, and in the process I also changed my domain name. www.vægbyg.dk -> www.vaegbyg.dk I downloaded/uploaded my database through "phpMyAdmin", and used...

archive-product page not working

i am trying to use woocommerce in my theme. i had copied woocommerce template file in my theme->woocommerce folder but still my changes not showing. even i was trying in plugin code but i had not...

wp.customize is not a function

So I've been developing my own theme on a Mutlisite and one of the test sites I'm working on using a default theme I'm building is outputting the following error: Uncaught TypeError: wp.customize...

'key' meta_query not working custom advanced search (WordPress)

Been trying for hours now and have almost got to breaking point. Tried so many different things but can't seem to get my custom search bar to query results by a pre-defined select price range. I...

Wordpress - Multi Taxonomy Ajax Filter with Ajax load more Posts

After a month of trying finally it working but there are small problem i can't figure it out! the filter is ok if he found the post between two taxonomies, but if there is no any posts it should...

Wordpress - Ajax filter/loadmore not working

I have the same ajax function for another post query and working without any problems! I copied all of them for creating another post query but not working and i don't know why! I changed every...

Wordpress pagination error with query strings

I have a page with custom WP Query to output different posts related to the award post type. $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'posts_per_page'...

Laravel Convert base64 and save with php form

I am using the Croppie script to edit images before uploading to my server. https://foliotek.github.io/Croppie/ The problem is Croppie encodes the cropped image in a base64 format. I have created...

Wordpress custom hierarchy of breadcrumbs (and no hierarchy of slug / URLs)

I am trying to create a hierarchy of pages in Wordpress for the breadcrumbs. The simplest way to do it, is by using the "Parent Page" attribute. However, when using this feature, it also creates a...

Like Post Button in wordpress

I tried to make a Like button for Posts so i found this tutorial with a lot of searching tutorial : https://www.atomicsmash.co.uk/blog/create-like-post-button-in-wordpress/ but not worked to me...