laikmosh
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] Number of generations of childreni think this may be related, i have this:
[for each=custom_tax parents=true] //html for first level taxonomy [-for each=child] //html for second level taxonomy [loop type=horarios level=1]//find every parent post under this taxonomy [-loop type=horarios parent=this]//find every child of this parent post and do something[/-loop] [/loop] [/-for] [/for]The problem im having is that the child posts have no taxonomy and the loop is looking for child posts that also have the same taxonomy as the parent, you think there is any way that i can get all of the child posts without having to add the same taxonomy as the parent post?
Forum: Plugins
In reply to: [Custom Content Shortcode] [is role=XXXX] not workingI noticed there was a fix in the new update, i tried it and with the debugger this is what i got:
CCS_User::is_shortcode Current roles Array ( )Forum: Plugins
In reply to: [Custom Content Shortcode] [is role=XXXX] not workingno, the user is logged in, actually the [users role=vendor]//do something[/users] is working fine, its just the [is role=vendor] that is not working, so the debugger is saying that the problem is that the current user has no roles?
if it helps in any way this is the code i used to add the new role, maybe theres something wrong in there that is causing this problem
$result = add_role( 'administracion', __( 'Administración' ), array( 'read' => true, // true allows this capability 'edit_posts' => true, // Allows user to edit their own posts 'edit_pages' => false, // Allows user to edit pages 'edit_others_posts' => true, // Allows user to edit others posts not just their own 'create_posts' => true, // Allows user to create new posts 'manage_categories' => true, // Allows user to manage post categories 'publish_posts' => true, // Allows the user to publish, otherwise posts stays in draft mode 'edit_themes' => false, // false denies this capability. User can’t edit your theme 'install_plugins' => false, // User cant add new plugins 'update_plugin' => false, // User can’t update any plugins 'update_core' => false // user cant perform core updates ) ); // End custom user rolei said “vendor” in the examples i used here, the actual role im using is administracion, thanks!
Forum: Plugins
In reply to: [Custom Content Shortcode] [is role=XXXX] not workinghello again, i got this output
CCS_User::is_shortcode
Current roles
NULLForum: Plugins
In reply to: [Custom Content Shortcode] before and after parameters with custom fieldyep, it worked fine, thanks again
Forum: Plugins
In reply to: [Custom Content Shortcode] before and after parameters with custom fieldakira… i just love you!
thanks for everything!
ill let you know how it works, as far as i know the field output is YYYYMMDDif there any way to use this function with a date stored in a custom field?
Forum: Plugins
In reply to: [Custom Content Shortcode] html fieldIT WORKED!
simple as that, i didnt have to change a bit of your code, just pasted it and now it works, thank you guys, you really helped me out on this one.
I could do this so easly with your feedback:
http://www.elbedroom.mx/blog/guia-practica/sintesis-substractiva/Forum: Plugins
In reply to: [Custom Content Shortcode] html fieldthats seems like exactly what im looking for, i tried using your code but the content disappeared and i can only see the header and footer of the theme in mi posts, could you show me how are you using this code in your single-gallery.php file? it would really help, thanks!
Forum: Plugins
In reply to: [Responsive Slider - Image Slider - Slideshow for WordPress] Slider z-indexsorry, i had forgotten to use the “position: relative;” poperty, my mistake, thanks
Forum: Plugins
In reply to: [Custom Content Shortcode] Loop if post has both categoriesNice, THANKS!; wow, what a plugin support, congrats!
Forum: Plugins
In reply to: [Custom Content Shortcode] Loop if post has both categoriesThanks, I didn’t know it was using the category slug, i always thought it was the category name, but it tried it with the correct category name and it still didn’t work.
this is the exact code im using for the loop:[loop category=”Presentaciones, br-events” orderby=”field” key=”_cs-expire-date” order=”DESC” compare=”and”]
it is displaying all the posts, but now that i know it uses the category slug, this code worked fine:
[loop category=”Presentaciones” orderby=”field” key=”_cs-expire-date” order=”DESC”]
[if category=”br-events”]i think your suggestion should have worked, am i putting the “compare=”and”” in the right position?