I need to:
Some constraints:
I’ve considered using WooCommerce’s built-in import/export tools or plugins like WP All Export/Import, but I’m not sure if they will handle the subscriptions and preserve product IDs properly.
What would be the best approach to achieve this migration without breaking product references and maintaining all WooCommerce data integrity?
I would appreciate detailed steps or recommendations on plugins, database migration, or other tools that can make this process efficient.
]]>blocks.min.js?ver=0d…2d232463200f5cfd:12 Block names must be strings.
When I console log for the block name and checking for type I see now issues:
console.log(metadata.name) // [Log] wpvillain/line-block
console.log('Type of Block Name:', typeof metadata.name); //[Log] Type of Block Name: – "string"
So that makes me wonder why I do get the error then? Is that due to Bud’s way of loading blocks or due to my line-block.js
or block.json
?
.
├── block.json
├── edit.js
├── editor.scss
├── save.js
├── line.block.js
├── style.scss
└── view.js
Here are my block.json
and line.block.js
:
import { registerBlockType } from '@wordpress/blocks';
import edit from './edit';
import save from './save';
import metadata from './block.json';
// Import block styles
import './style.scss';
registerBlockType(metadata.name, {
...metadata,
edit,
save,
});
console.log(metadata.name) // [Log] wpvillain/line-block
console.log('Type of Block Name:', typeof metadata.name); //[Log] Type of Block Name: – "string"
here the JSON block file:
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "wpvillain/line-block",
"version": "0.1.0",
"title": "Line Block",
"category": "design",
"icon": "minus",
"description": "A block that adds a customizable line.",
"example": {},
"supports": {
"html": false
},
"attributes": {
"thickness": {
"type": "number",
"default": 1.5
},
"color": {
"type": "string",
"default": "#e0bd5f"
},
"width": {
"type": "string",
"default": "120%"
},
"borderStyle": {
"type": "string",
"default": "solid"
}
},
"textdomain": "line-block",
"editorScript": "file:./line.block.js",
"editorStyle": "file:./editor.scss",
"style": "file:./style.scss",
"viewScript": "file:./view.js"
}
I think all needed attributes are here including name and title and checking in console log I see no issues with type used. So then what am I missing here?
]]>$template = locate_template(array('page.php','index.php'),false); //category becomes a page
To this:$template = locate_template(array(get_template_directory().'/page.php',get_template_directory().'/index.php'),false);
Hopefully this fix can be implemented in an upcoming version of the plugin, thanks!
]]>Backend part of Web Stories plugin is working fine. I’ve created story from template and unfortunaly I’m getting blank screen on front-end with no error message. Basically, it returns only <head> and <body> tags with nothing inside.
I tried to disable all plugins – same. After switching to default theme everything works fine. Also I tried to change permalink and save it in WP settings. I tried this version of plugin as you sugessted earlier (https://github.com/GoogleForCreators/web-stories-wp/releases/tag/v1.16.0-rc.1) and it also works just fine. But I guess it’s not good practice to use 2 years old plugin version.
Could you please take a look at this issue? I will provide any additional details if needed. But now this issue only on my local env and dev/staging, not in prod.
]]>I have archive page custom for posts and for custom post type . I want to prevent the indexing of pages like this :
websiteurl.com/custom-post-type-slug/page/3/
so that /page/2 , /page/3 do not appear on indexing .
I am using this plugin for SEO . If you need more details don’t hesitate to ask me .
Thanks in advance .
]]>In my controller I pull in the custom taxonomy “Boligtype” with get_the_terms() in my return script.
I can’t figure out why this is not working proberly.
Hope someone can help
Has anyone tried / succeeded setting up this plugin with Sage 9 image files ?
https://roots.io/sage/
Cheers
]]>For use with Bedrock and Sage :
Add WEBROOT to application.php :
if (!defined('WEBROOT')) {
define('WEBROOT', $webroot_dir );
}
Then in filters.php in Sage :
/**
* https://www.ads-software.com/plugins/webp-converter-for-media/
*/
add_filter('webpc_site_root', function ($path) {
return WEBROOT; // your valid path to root
});
add_filter('webpc_dir_name', function ($path, $directory) {
if ($directory !== 'uploads') {
return $path;
}
return 'app/uploads';
}, 10, 2);
add_filter('webpc_dir_name', function ($path, $directory) {
if ($directory !== 'webp') {
return $path;
}
return 'app/uploads-webpc';
}, 10, 2);
add_filter('webpc_uploads_prefix', function ($prefix) {
return '/';
});
]]>I installed the plugin and set it up connecting to GA fine, but I’m using a theme that isn’t widget aware:
“The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change.”
This means the widget link on the settings page for the plugin doesn’t work (broken link to https://www.mywebsite.com/wp/wp-admin/%7B!!%20admin_url(‘widgets.php’)%20!!%7D)
So I followed the instructions to use the function in a template directly:
“How can I use the plugin functionality outside the sidebar? The plugin offers 2 functions that can be used either in the theme or by another plugin.”
https://www.presslabs.com/docs/code/toplytics/how-to-use-toplytics/
Using this code:
<?php
$toplytics_args = array(
'period' => 'month', // default=month (today/week/month)
'numberposts' => 7, // default=5 (min=1/max=250)
'showviews' => true // default=false (true/false)
);
if ( function_exists( 'toplytics_results' ) )
toplytics_results( $toplytics_args );
?>
But this fails as the ‘function_exists’ is false.
Is there something I’m doing wrong? The theme is also a Roots/Bedrock/Sage variety, not sure if that’s relevant?
Thanks for any help.
]]>