Up to 50 percent off

Forum Replies Created

Viewing 10 Topics - 1 through 10 (of 10 total)
Author Posts
April 22, 2014 at 9:52 pm in reply to: Post templates 19246
Nicolas Nicolas

Sorry but i don’t understand it.
What I’m trying now is a total diferent way to get what i want.
I want to show author box only for non admin users (or some roles) and that’s why I was doing a post template only for authors with author box.

Now I’m tring to get a php code to show author box only if the post author role is Author.
Maybe you can help me, i’m trying this code but i cant get to work

<?php 
global $wp_query;
$roles = $wp_query->queried_object->roles;
if( $roles[0] == 'author' ) {?>

 <h4 class="author_box_title"><?php _e('About The Author', 'theme'); ?></h4><?php
echo do_shortcode('[upme id=author]');
?>
    <?php } ?><?php }?>

Thanks

April 22, 2014 at 8:45 pm in reply to: Post templates 19242
Nicolas Nicolas

But I dont want users to post custom types, because of the architecture of my site, I prefer to use template posts.
That’s because if I do post types, when I go to a users posts I will see 0 results of posts.

April 22, 2014 at 7:51 pm in reply to: Post templates 19239
Nicolas Nicolas

That’s about post types but not post templates.
I’ve a single.php and a single2.php (with small diferences in author bx) formats and that’s what I want to define.
I would like to know if the post format can be changed, because I only have -NONE- option and meybe it can be my solution.

December 10, 2013 at 9:00 pm in reply to: Map field fails. 13580
Nicolas Nicolas

Don’t worry just testing again and the default theme works right, it seems to be a theme error…
If you see something that can help me i would be gratefull.

December 9, 2013 at 11:39 pm in reply to: Map adress sends form. 13554
Nicolas Nicolas

I would like to close this topis, so i’ve post it in pro forum.
http://wedevs.com/support/topic/map-field-fails/

December 4, 2013 at 12:12 am in reply to: Choose user type on registration 13226
Nicolas Nicolas

sorry but i don’t understand, where does the code goes?

December 3, 2013 at 11:53 pm in reply to: Map adress sends form. 13225
Nicolas Nicolas

it happens also with default wp theme.

December 3, 2013 at 4:58 pm in reply to: upload image not working corectly 13213
Nicolas Nicolas

looking in functions theme i’ve see this:


// Empty Pragraph Fix

  /*

    Plugin Name: Shortcode empty Paragraph fix

    Plugin URI: http://www.johannheyne.de/wordpress/shortcode-empty-paragraph-fix/

    Description: Fix issues when shortcodes are embedded in a block of content that is filtered by wpautop.

    Author URI: http://www.johannheyne.de

    Version: 0.1

    Put this in /wp-content/plugins/ of your WordPress installation

    */

    add_filter('the_content', 'shortcode_empty_paragraph_fix');

    function shortcode_empty_paragraph_fix($content)

    {   

        $array = array (

            '<p>[' => '[', 

            ']</p>' => ']', 

            ']<br />' => ']'

        );

        $content = strtr($content, $array);

		return $content;

    }

I’ve deleted and seems that the paragraph tags are gone, but problem stays.
default theme works fine.

December 3, 2013 at 3:44 pm in reply to: upload image not working corectly 13198
Nicolas Nicolas

Can anyone give me a clue of what is wrong ?
Thanks

November 30, 2013 at 8:08 pm in reply to: upload image not working corectly 13076
Nicolas Nicolas

Sorry.
It happpens only if image is required.
Now changed

Viewing 10 Topics - 1 through 10 (of 10 total)