msbodetti
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [Metaphor Shortcodes] Post block for specific categoryWell it worked for me by editing your general.php file. Looking forward to getting your update for the plugin!
Forum: Plugins
In reply to: [Metaphor Shortcodes] Post block for specific categoryI did add the semi-colon after the return, it still wasn’t working. Look above.
Unless you weren’t using it in your Zen Theme, and it worked.
Forum: Plugins
In reply to: [Metaphor Shortcodes] Post block for specific categoryI just added it to your plugin general.php file and it works:
Line 193 Function:
function mtphr_post_block( $atts, $content = null ) { extract( shortcode_atts( array( 'id' => '', 'class' => '', 'type' => 'post', 'orderby' => 'date', 'order' => 'DESC', 'offset' => '0', 'trim' => 120, 'category_name' => 'news' ), $atts ) );Would like it to work as a parameter though..
Forum: Plugins
In reply to: [Metaphor Shortcodes] Post block for specific categoryStill not working..
Have you tried this already?
Forum: Plugins
In reply to: [Metaphor Shortcodes] Post block for specific categoryIt’s not working, I don’t know if it needs a specific or other $tag.
Please assist. Or if you have any updates on your plugin, let me know. Thanks 🙂<?php /* Plugin Name: Plugin URI: Description: Author: Author URI: Version: 1.0 */ function custom_post_block_query_args($args){ $args['category_name'] = 'News'; return $args; } add_filter('mtphr_post_block_query_args', 'custom_post_block_query_args'); ?>Forum: Plugins
In reply to: [Metaphor Shortcodes] Post block for specific categoryThanks for the reply!
Will this update all the post blocks?
Viewing 6 replies - 1 through 6 (of 6 total)