marluras
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Kale] Removing Sidebar from Home PageHello
I appreciate your theme. Great work.
I suppose it isn’t possible either to display 3 posts in a row of the frontpage, as it does on category pages ?
I used your extra css tu hide the sidebar, extended main view to 100%, ok, it shows up two posts in a row like before, which seems normal and conform to the proposed features.
By the way is there a difference in functions between the two ccs files, one style.css, one style-rtl.css ?
Thanks and best regards
MartinForum: Plugins
In reply to: [Accordion Blocks] accordion group or item doesn’t show up in page menuyou’re right, I’d installed Accordion blocks (so what is this for?) –
Now it’s working, thanksHi I use an author page template (author.php) like this
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]I want that the message can be sent to any author on this site by an author page like this
For the moment it works for a real mail put into the To: Field of contact-form7I began to try several things inspired by sevenspark but none worked for me
I’m wondering if I can use the $curauth variable of the the template to do this.Anny help appreciated
Thanks in advance
Martin\\This is the complete code of author.php where the variable $curauth is set
<?php get_header(); ?>
<div id=”content” class=”entry”>
<div class=”post-content”>
<?php userphoto($wp_query->get_queried_object()) ?><!– This sets the $curauth variable –>
<?php
$curauth = (isset($_GET[‘author_name’])) ? get_user_by(‘slug’, $author_name) : get_userdata(intval($author));
?><h2><?php echo $curauth->nickname; ?></h2>
<?php echo $curauth->user_description; ?>
<p>user_url; ?>”><?php echo $curauth->user_url; ?></p>
<h2>Envoyer un message :</h2>
<?php echo do_shortcode( ‘[contact-form-7 id=”120″ title=”Contact auteur”]’ ); ?>
</div>
</div>
<?php get_footer(); ?>
Perhaps the problem is here (author.php), I did this
<?php add_shortcode(‘CF7_get_curauth_email’, ‘get_curauth_email’); ?>
<?php echo do_shortcode( ‘[contact-form-7 id=”120″ title=”Contact auteur”]’ ); ?>I don’t know how to associate the two short codes
yes, you’re right, but it doesn’t work either
the only one that’s working is to enter my mail instead of [recipient-mail] into the contact-form7, but this means that all messages on all author pages are sent to me and not to to a particular author, other than me.
there is a variable in this author template : $curauth
I tried this – inspired by sevenspark :
add_shortcode(‘CF7_get_curauth_email’, ‘get_curauth_email’); into/ or after the contact-form 7 short codeand in the contact-form 7
[dynamichidden recipient-email “CF7_get_curauth_email” ]EMAIL
to:
[recipient-mail|But it doesn’t work
precision, I use this short code in the author template
<?php echo do_shortcode( ‘[contact-form-7 id=”1234″ title=”Contact form 1″]’ ); ?>