Steps to reproduce:
I will provide the steps to reproduce the error on my website
Thank you for your help.
]]>If I adapt the .htaccess file as in the documentation of vuejs, I can access my routes, i.e. open paths with defined content. simple catchall an redirect to the index.html oy my vuejs site
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
I can also open wp-admin without any problems, but the REST API stops working:
www.site.com/wp-json/wcra/v1/pagerecursive/?parentId=0
then the catchall runs www.site.com.
How can I ensure that the REST API call is processed by wordpress. How can Idefine a rule for wp-json?
]]>since I am developing on my local machine, I have not generated a UUID, because most of the details are different for the live machine. But I think these are important:
System
Problem
The AMP Plugin is working fine with most of our custom post types we have set up. We are using our own amp theme in reader mode which also works fine. So no problems until then. But there is one thing we can′t get to work. After spending several days trying to find a solution we have now decided to ask you here.
We are using a custom routing for one of our custom post types (testbericht). Without the routing the url would be /testberichte/post-name. But with our routing it is /handys/xxxxxx/test. The AMP Endpoint we are using is /amp. So that has to be added to the url for viewing the AMP version.
Now if we go to /handys/xxxxxx/test/amp we are instantly redirected to the non-amp version without the endpoint. We have already found out where in the code that happens.
The method redirect_extraneous_paired_endpoint() calls amp_is_available() which calls AMP_Theme_Support::get_template_availability( $wp_query ) which calls $query->is_singular() at the end which returns false. So if we set $query->is_singular = true; and $query->is_single = true; right before the check, the redirect is not happening anymore. But guess what: the amp page still does not work because if is_singular is not set there have to be some general issues with the query because the post is a singular post.
As we don′t want to code in the Plugin itself anyway we removed the lines and set up a function for the hook “pre_get_posts” in which we tried out stuff like that:
$query->is_singular = true;
$query->is_single = true;
$query->is_home = false;
$query->set('singular', true);
$query->set('is_singular', true);
$query->set('post_type', 'testbericht');
$query->set('p', xxxxxx);
but it doesn′t help. At the point the amp plugin is checking for $query->is_singular() the property is not set although we’ve set it before at pre_get_posts as mentioned.
Maybe the plugin resets these properties when specific checks are performed. We do not have a clue anymore. Maybe there is one property we have to set and everything works Maybe the plugin is not able to work with custom routings.
So if someone has an idea how to solve this, we would be very grateful Thank you very much.
]]>I can’t share the url because it’s from a secured intranet.
I did the configure routing on a few forms, but there is one form that it won’t work on. The error message is “WordPress was unable to send the notification email. Cannot send email because the TO address is invalid.”
But the emails in the TO are correct, and comparatively to other forms, everything is the same. The only difference is that this particular form has two different fields that it uses for routing. One field is Department, which goes to the applicable manager, and the other is Cost, which if it is over x amount or under x amount, goes to a different person.
I tried taking the Cost field off, but it still didn’t work.
For the life of me, I cannot figure this out…any help is greatly appreciated.
]]>I went to try to edit the permalink and there was no edit option like I saw in other examples when attempting to search a solution.
I suspect it has to do with Woocommerce, but I am unsure. Any ideas?
]]>Great Plugin so far! I just run into a problem while trying to set up switch routing. For our company we have pages like this broadcasted for different countries with the same language. Simply for changes to be instantly broadcasted and not having the need to be applied to any more pages. In this specific case I want the logo carousel to output only logos that have the value of the country. This is working fine but I got problems with the switch itself.
Long story short: When trying to setup switch routing the code always outputs the default condition. Is there something I have overlooked?
Here’s my code:
[loop type=portfolio category=referenzen gallery=carousel]
[switch route]
[when de/company/profile]
[if field=customer_logo-homepage value=de]
<li>[field thumbnail]</li>
[/if]
[/when]
[when at/company/profile]
[if field=customer_logo-homepage value=at]
<li>[field thumbnail]</li>
[/if]
[/when]
[when chde/company/profile]
[if field=customer_logo-homepage value=chde]
<li>[field thumbnail]</li>
[/if]
[/when]
[when default]
[if field=customer_logo-homepage value=global]
<li>[field thumbnail]</li>
[/if]
[/when]
[/switch]
[/loop]
Thanks in advance,
Alex
[Site-url].com/blog > [Site-url]com/article-title
but what I want to achieve is this kind of url
[Site-url].com/blog > [Site-url]com/blog/article-title
Can you help me solve this? I’m new when using wordpress and elementor
]]>