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...

WordPress pagination links return 404 error on custom post types (only)?

When I click a pagination link in my custom post type "works" listing of posts (or enter a URL like "mysite.com/works/page/2"), I get the 404 page. Regular post type pagination (blog) works...

How to add a menu item to the front page of a site?

I'm looking for a bit of help with a site that I'm working on that uses WordPress as a CMS. Basically, I am attempting to add a menu item called 'Mood Boards' to the front page of this site, so...

Create sub page of sub pages using "fake pages"

I found this tutorial to make so called fake pages, so I could dynamically create pages with custom fields. It works very well, but I need to tweak it to fit my needs. Like if for example a book...

Replace custom content type slug in Wordpress

In WordPress, I'm using Jetpack's portfolio custom content type, but would like to change the slug from "portfolio" to "examples". I found this example on how to do it...

How to remove taxonomy slug from custom post type url?

I have a custom post type(product) with taxonomy product-type. One of my url like this: http://www.naturesbioscience.com/product-type/immune-support-supplements/ I want this like:...

Wordpress plugin Advanced Custom Fields Pro not saving Frontend and Backend

I am using A custom Post Type with Advanced Custom Fields to create custom entries of a post. My Customs Post Type and Options are added with (please scroll on codebox to see all): add_action(...

Examine Worpdress url to check if it has an endpoint

Is it possible to find out if current Wordpress url is an endpoint page? Pretty permalinks are in use Can be asked late, after wp_head, but earlier is better Only using: global $wp_query; isset(...

Removing custom post type slug but WordPress keeps redirecting it

So I'm trying to remove the custom post type slug at the start of the URL. I can get my rewrite to work but WordPress keeps redirecting it back to the URL I don't want. At the moment this is the...

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...

Why a for cycle in a django template add space at the end of my tag?

My template.html: {% for x in post.tags.all %} <a href="{% url 'blog:post_list_by_tag' x.slug %}"> {{ x.name }} </a> {% if not forloop.last %}, {% endif %} {% endfor %} I haven't space...

Wordpress custom post type taxonomy URL

I'm having trouble getting the URL structure for my custom post types & taxonomy. I have a custom post type called projects and a taxonomy of company, I have created projects and added them to the...

Custom Wordpress Taxonomy (Actors), show today's birthdays on homepage with query

I have a movie website, with movies as posts, and actors as a custom taxonomy. For my custom taxonomy, I added this in my functions.php file: $labels = array( 'name' =>...

Append/prepend permalink with meta values in custom post types

How to append meta values to custom post types in permalink? I have urls like www.abc.com and along with post title, I want to add two meta values, namely Date as year/month & name of company in...

Add taxonomy Term to WooCommerce product permalink

I want to add the slug of a custom taxonomy to the permalink of a WooCommerce product. To do this, I've added a taxonomy called brand. Now I want to add the slug of the brand to the product...

custom permalink structure for custom post type based on meta fields and custom taxonomy

I have two custom post types. One with the slug artwork and another with the slug research-materials. The permalink structure for an artwork post is http://example.com/artwork/artwork-slug and...

Add and manage Product custom upload field in Woocommerce 3

I am trying to add a file upload along with radio inputs in a custom woocommerce page; where all the products are showing in a list view. The Custom Page CODE: <?php /* Template Name: Custom...

Remove base slug from hierarchical custom post type

Cheers, for SEO reasons I try to remove the base slug of my custom hierachical service post type (example name: "custom-service"). These method is called SEO siloing. I tried different methods to...

How to rewrite URL of custom post type without post type in URL

I am working on a tour site. Where they have a custom post type built with a custom plugin. That custom post type has base slug like "/destination/".$post->post_name. They want to me to remove...

Remove custom post type slug from wordpress url and keep taxonomy term

I have registered CPT & taxonomy with the following code : // CPT & Taxonomy add_action('init', 'marques_cpt'); function marques_cpt() { $labels = array( 'name' => 'Marques', ...

Timber Twig: query a Custom Post Type by category and output a shortcode of posts

What I'm trying to do is generate a new Custom Post Type called report, add a taxonomy, query the reports, and then generate a shortcode in the format of [report_listing category="general"] to...

Custom Post type Archive and single page redirecting to Home page

My custom post type was working fine on wordpress 4.9 so i updated to 5.2 and it is not working now. This is the page which contains the testimonials slider at bottom clicking on read more link...

How to add subcategories to custom post type of product catalogue without plugin and woocommerce

i am stuck at problem. I have created a custom post type namely "products". In this custom post i have added a taxonomy category namle as "product categories". In product categories i have added...

Wordpress pagination issues with Custom Post Type and custom rewrite rule

We use latest WP (5.2.2). We have a custom post type called Stories (slug: stories) with the following capabilities during setup. Public: true Publicly Queryable: true Show UI: true ...

how to remove custom post type from wordpress url?

I have a wordpress website which is using the custom template with custom post types like landing and services. Each post type have a specific slug in the url like this =>...

Problem removing sub category from permalink URL of blog post in Wordpress

I'm using this solution to remove sub-categories from the url on my blog posts:...

Custom Post Type Single page shows 404 error

I am using Custom Post Type Permalinks By Toro_Unit plugin for customizing urls. Here is my custom post type <?php /** * Post Type: our-products. */ function...

Pagination not working with custom URL structure of CPT/Taxonomy

I'm fairly new to posting here and I'll try to keep it as clear as possible! Any guidance is greatly appreciated! The Goal: I am trying to create a Custom Post Type and a Taxonomy where I can...

Paginate WPQuery redirect to page 1

In my Wordpress template, I'm making a WP query in order to list all cities in specific regions (custom post type). In some cases, regions have more than 3000 cities so the Query is too heavy and...

How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?

(Forgive me, I know this question has been asked extensively but I haven't found an answer that works for me) I'm working on a website for a webcomic. I have a custom post type set up called...