triphys
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Facebook like counter keeps on resettingCan’t really find it there :/
What does the data-width do? I think I have it on 100 as default.
Thank you so much for all the help!
Works perfectly.Oh my god! It actually works! You’re a saviour! Thank you so much for this!
Last question and then you will be rid of me hahaIs there a way to make the name link to the authorpage?
Thanks again!
Thanks for your reply, unfortunately it wont show the avatars quite yet. I think there might be something wrong with my code.
?php if ( class_exists( 'coauthors_plus' ) ) { $co_authors = get_coauthors(); foreach ( $co_authors as $key => $co_author ) { $co_author_classes = array( 'co-author-wrap', 'co-author-number-' . ( $key + 1 ), ); echo '<div class="' . implode( ' ', $co_author_classes ) . '">'; echo '<h4 class="co-author-display-name">' . $co_author->display_name . '</h4>'; echo '<?php userphoto_the_author_thumbnail( $co_author ); ?>'; echo '</div>'; } } ?>It’s only showing the names of the authors and no avatars.
Any idea what it could be?Thanks again so much!
Hi, and thanks for your response!
Yes, it’s regarding the same issue, I’m sorry for opening a new thread but the last post wasn’t 100% accurate 🙂
Okay, so basically when you usually add an avatar you use the get_avatar() tag, but since i use the plugin UserPhoto which allows me to upload an avatar in the admin menu for each author i’m using this code to generate an avatar in the post:
<?php userphoto_the_author_thumbnail() ?>So I’m not 100 sure about this code, but i added an echo for the avatar like this:
if ( class_exists( 'coauthors_plus' ) ) { $co_authors = get_coauthors(); foreach ( $co_authors as $key => $co_author ) { $co_author_classes = array( 'co-author-wrap', 'co-author-number-' . ( $key + 1 ), ); echo '<div class="' . implode( ' ', $co_author_classes ) . '">'; echo '<h4 class="co-author-display-name">' . $co_author->display_name . '</h4>'; echo '<?php userphoto_the_author_thumbnail() ?>'; // Only print the description if the description exists if ( $description = get_the_author_meta( 'description', $co_author->ID ) ) echo '<p class="co-author-bio">' . $description . '</p>'; echo '</div>'; } }Would that be correct?
Before this implementation my code looked like this:
<div class="byline"> <p class="mypic"><?php userphoto_the_author_thumbnail() ?></p><p class="bylinetxt">Text: <?php the_author_posts_link(); ?></br>Published: <?php the_time('l, F j, Y') ?></p> </div>Thank you so much!
Forum: Fixing WordPress
In reply to: Quick question with static sidebarThanks for the reply, but I was thinking something like this instead: http://themes.premiumpixels.com/gridlocked/ That’s what I would like to achieve.
Forum: Fixing WordPress
In reply to: Page shows full posts (not excerpts)my template code: http://pastebin.com/zd3v5ixi
my regular index code: http://pastebin.com/bU6Dyw4j
I’m getting the same Uncaught “TypeError: Object #<an Object> has no method ‘cycle'” on my page and I don’t run almost any plugins at all :/
full link to post with my problem http://www.triphys.com/hosted/dedikation/?p=10
Argh! I really didn’t thought it was that since it worked at first (i think), but now I removed it and it works great! Thanks alot!
Great plugin by the way 😉Cheers!
Since i’m not that good at explaining i tried to draw a picture explaining what I would like to do. When I drew the picture I made the layout as a theme for wordpress and that is actually what I would like to have.
As of now i use this command for my .php links (this string in index.php):
<?php ob_start(); $_GET['p'] = (isset($_GET['p'])) ? $_GET['p'] : "home"; $_GET['p'] = str_replace("..\\", "", str_replace("../", "", $_GET['p'])); ?>And then further down I have a “content div” with the following code:
<div id="content"><?php if(is_file("content/" .$_GET['p'] .".php")) { include("content/" .$_GET['p'] .".php"); } else { include("content/404.php"); } ?></div>So when you enter my page you will see home.php in the “content div”. And when you press for example the “about” button, about.php is called for inside the “content div”.
But I can’t seem to get it working as a wordpress theme.
I hope this made things clearer 🙂
Thanks alot! That works great… Unfortunately I only have one problem with those scripts. Let’s say I show one post in my div tag and then if a user would like to “Continue Reading” or maybe comment and they click a link they get forwarded to my actual blog… I would like the rest of the post appear in a clean div on my homepage.
So that they never come in actual contact with the blog (only the text displayed on my page).Is that possible to manage?