Include a static page in WooCommerce product categoriesWooCommerce- How to remove product & product-category from urls?Difference between require, include, require_once and include_once?Permalinks WordPress WoocommerceUnable to show 4 products in row in subcategory/shop page woocommerceWoocommerce - the number of the selected product appears in all forms of other productsDisplay specific product child category title on Woocommerce product based on parentMove woocommerce category description below productsShow attribute values on Woocommerce category archive pagesWoocommerce - Same Permalink for Shop, Category, Custom Base with Child CatsInclude subcategory in WooCommerce URLsChange product button based on product category in Woocommerce archive pages
Finding all intervals that match predicate in vector
Bash method for viewing beginning and end of file
How does a character multiclassing into warlock get a focus?
Trouble understanding overseas colleagues
Why "be dealt cards" rather than "be dealing cards"?
Why does John Bercow say “unlock” after reading out the results of a vote?
How can I use the arrow sign in my bash prompt?
What's the purpose of "true" in bash "if sudo true; then"
Where in the Bible does the greeting ("Dominus Vobiscum") used at Mass come from?
Ways to speed up user implemented RK4
Using parameter substitution on a Bash array
What defines a dissertation?
Increase performance creating Mandelbrot set in python
Is the destination of a commercial flight important for the pilot?
How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?
Valid Badminton Score?
What are the ramifications of creating a homebrew world without an Astral Plane?
HashMap containsKey() returns false although hashCode() and equals() are true
Is there any reason not to eat food that's been dropped on the surface of the moon?
Greatest common substring
Opposite of a diet
Was the picture area of a CRT a parallelogram (instead of a true rectangle)?
What is the intuitive meaning of having a linear relationship between the logs of two variables?
There is only s̶i̶x̶t̶y one place he can be
Include a static page in WooCommerce product categories
WooCommerce- How to remove product & product-category from urls?Difference between require, include, require_once and include_once?Permalinks WordPress WoocommerceUnable to show 4 products in row in subcategory/shop page woocommerceWoocommerce - the number of the selected product appears in all forms of other productsDisplay specific product child category title on Woocommerce product based on parentMove woocommerce category description below productsShow attribute values on Woocommerce category archive pagesWoocommerce - Same Permalink for Shop, Category, Custom Base with Child CatsInclude subcategory in WooCommerce URLsChange product button based on product category in Woocommerce archive pages
My website has several product categories, for example:
- site.com/product-category/logs
- site.com/product-category/sheds
- site.com/product-category/wood
- site.com/product-category/local
With the last one, I also have a page for local products: site.com/local
I would like to replace the site.com/product-category/local link on my shop page with the site.com/local link. I have tried using the following filter in my functions.php, to no avail:
<?php
function replace_content($content)
$content = str_replace('/product-category/local/', '/local/',$content);
return $content;
add_filter('the_content','replace_content');
Edit: my question is not about changing the URL structure of product category links, it is about including a non product category link in the loop of the categories page.
php wordpress woocommerce
add a comment |
My website has several product categories, for example:
- site.com/product-category/logs
- site.com/product-category/sheds
- site.com/product-category/wood
- site.com/product-category/local
With the last one, I also have a page for local products: site.com/local
I would like to replace the site.com/product-category/local link on my shop page with the site.com/local link. I have tried using the following filter in my functions.php, to no avail:
<?php
function replace_content($content)
$content = str_replace('/product-category/local/', '/local/',$content);
return $content;
add_filter('the_content','replace_content');
Edit: my question is not about changing the URL structure of product category links, it is about including a non product category link in the loop of the categories page.
php wordpress woocommerce
add a comment |
My website has several product categories, for example:
- site.com/product-category/logs
- site.com/product-category/sheds
- site.com/product-category/wood
- site.com/product-category/local
With the last one, I also have a page for local products: site.com/local
I would like to replace the site.com/product-category/local link on my shop page with the site.com/local link. I have tried using the following filter in my functions.php, to no avail:
<?php
function replace_content($content)
$content = str_replace('/product-category/local/', '/local/',$content);
return $content;
add_filter('the_content','replace_content');
Edit: my question is not about changing the URL structure of product category links, it is about including a non product category link in the loop of the categories page.
php wordpress woocommerce
My website has several product categories, for example:
- site.com/product-category/logs
- site.com/product-category/sheds
- site.com/product-category/wood
- site.com/product-category/local
With the last one, I also have a page for local products: site.com/local
I would like to replace the site.com/product-category/local link on my shop page with the site.com/local link. I have tried using the following filter in my functions.php, to no avail:
<?php
function replace_content($content)
$content = str_replace('/product-category/local/', '/local/',$content);
return $content;
add_filter('the_content','replace_content');
Edit: my question is not about changing the URL structure of product category links, it is about including a non product category link in the loop of the categories page.
php wordpress woocommerce
php wordpress woocommerce
edited Mar 13 at 9:59
chris45
asked Mar 7 at 11:40
chris45chris45
3018
3018
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Duplicate of
WooCommerce- How to remove product & product-category from urls?
I think your question has already been answered. Please let me know if I have misunderstood.
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042930%2finclude-a-static-page-in-woocommerce-product-categories%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Duplicate of
WooCommerce- How to remove product & product-category from urls?
I think your question has already been answered. Please let me know if I have misunderstood.
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
add a comment |
Duplicate of
WooCommerce- How to remove product & product-category from urls?
I think your question has already been answered. Please let me know if I have misunderstood.
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
add a comment |
Duplicate of
WooCommerce- How to remove product & product-category from urls?
I think your question has already been answered. Please let me know if I have misunderstood.
Duplicate of
WooCommerce- How to remove product & product-category from urls?
I think your question has already been answered. Please let me know if I have misunderstood.
answered Mar 7 at 21:11
William TurnerWilliam Turner
617
617
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
add a comment |
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
No, I would like the URLs for product categories to remain the same, but I would like to include a non-product-category page in the loop.
– chris45
Mar 12 at 13:05
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Hi @William-turner, can you please remove the possible duplicate box from my question? It is not the same question and I think it's stopping people from looking at my actual question.
– chris45
Mar 20 at 10:36
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
Yes apologies not a problem.
– William Turner
Mar 20 at 12:41
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042930%2finclude-a-static-page-in-woocommerce-product-categories%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown