Allyson
Forum Replies Created
-
I’ve ended doing a string replace on block render, like that:
add_filter( 'render_block', 'render_core_post_template', 10, 2 );
/**
* Filter core/post-template to modify it's markup.
*
* @param string $block_content The block content.
* @param array $block The full block, including name and attributes.
*/
function render_core_post_template( $block_content, $block ) {
if ( isset( $block['blockName'] ) && 'core/post-template' === $block['blockName'] ) {
if ( ( $block['attrs']['className'] ?? '' ) === 'is-style-table' ) {
// Replace <li> with <tr>.
$block_content = str_replace( '<li class="', '<tr class="', $block_content );
$block_content = str_replace( '</li>', '</tr>', $block_content );
// Replace <ul> with <table>.
$block_content = str_replace( '<ul class="', '<table class="', $block_content );
$block_content = str_replace( '</ul>', '</tbody></table>', $block_content );
}
}
return $block_content;
}Also, I’ve created an issue on Gutenberg repository to address this possible enhancement to allow more flexibility for developers: https://href.li/?https://github.com/WordPress/gutenberg/issues/61738
Thanks!Forum: Plugins
In reply to: [The Icon Block] The use of the Icon Block with the Query LoopI’m wanting to do the same, creating a custom block to use inside
core/post-template
and have more control over post content output, but I would like to keep the non-reload pagination feature.
Is it possible in 6.5? There’s anything that I have to do in order to my block to be compatible with it? I would appreciate if anyone has any link covering this topic. (Sorry for not opening a new ticket, it just felt very aligned with this one)Hey @shawnogordo, it’ll definitely help us, we’re developers and knowing which files/functions to look, and how data is stored will sure make thinks easier.
Thanks
Hey @shawnogordo,
Thanks for getting back. I know it sounds weird, but it’s a long story of an old bloated custom CMS migrating to WordPress. The old CMS doesn’t have the hability to generate podcast feeds, but they submited the audio files to them.
I just wanted to know if there’s a function, a hook, or a process to populate the enclosure meta, since it’s not only a media url field, it puts the duration, MIME Type and other meta-info about the audio.
I get into source code, but it was a bit confusing.
Anyway, thanks for your willing to help.
Hi Shawn, thanks for your support. I do have coding skills, I would like to know if it have some function or hook I can trigg to save the meta field, since I looked at the database and it doesn’t store the media file URL, but some other kind of data: https://imgur.com/a/qgvL0hz
Unfortunately it’s not a feed in the other CMS, just an entry with a media attached in a field. I want to now import it and create the feed with PowerPress.
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Post Type PodcastingI get it! I don’t know what happened, but I:
– Deleted the podcast channel that was created (then it was recreated);
– Went to podcast channel > other and set my custom post type;Thanks!
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Post Type PodcastingHey Mike,
Thanks for your fast answer. I’ve tried that but without success. Any chance something else can be the problem?
Forum: Plugins
In reply to: [Registrations for WooCommerce] Is it still kept up to date?Hi @alexandro77,
We still, but right now some users have reported some bugs, and we’re having a bad time to do some fixes and upgrades because of lack of resources (time/money) for it, but is definitely not an abandoned project.
Hi @probillals,
What are you trying to reproduce? In my understanding I’m asking for something Tutor don’t really cover, which is the prevention of user accessing the product single directly, or trough mini-cart/cart links. For now I’m considering a redirect with third-party plugin, to always send users from product to course page.
Hi @munayam, great, I’ve checked my settings and now courses are hidden in shop page, but if the user clicks on course title in cart/mini-cart they still goes to the product page, there’s a way to prevent that?
Oh, I get it, it’s a paid one, so we’ll probably have to figure out with the developers on how to make it properly work or change our checkout: https://codecanyon.net/item/arg-multistep-checkout-for-woocommerce/18036216
Forum: Plugins
In reply to: [Delivery Date System for WooCommerce] Error in “select a delivery time” tabBoa tarde, desculpe-nos a demora em responder. Poderia nos falar um pouco mais sobre o problema? Ele ocorre em todos os navegadores? Há horários de entrega cadastrados?
Obrigado
Forum: Plugins
In reply to: [WooCommerce] Additional data to REST responses (REST v3)Thanks for your reply! We solved our problem in another way, but maybe it could be a great addition.-
Forum: Plugins
In reply to: [Registrations for WooCommerce] Campo adicional data de aniversarioOlá @leogartner você pode publicar sua necessidade em plataformas de freelance, focadas ou n?o em WordPress, como:
– jobs.wordpress.net
– hangarwp.com
– hirewp.devHá também grupos em redes sociais focados em oportunidades para profissionais WordPress.