airdrawndagger
Forum Replies Created
-
Forum: Plugins
In reply to: Need to search custom fieldsI want this too!
It should be a piece of cake, no?Forum: Plugins
In reply to: Multiple feeds in a sidebar widgetSolved, did it with Yahoo Pipes and the out-of-the-box RSS widget ??
Forum: Fixing WordPress
In reply to: Display latest post from a certain category on a “page”So far I added:
<?php query_posts('category_name=tidningen&posts_per_page=1');
And it does what I want, however, it doesn’t display the comments below the post!
Forum: Fixing WordPress
In reply to: Display latest post from a certain category on a “page”I think I get it, but unfortunately I suck at PHP. Maybe you could help out with what I need to change here to make this code display the latest post from a category. This is the code from single.php in arras-theme which I use:
<div id="content" class="section"> <?php arras_above_content() ?> <?php if ( arras_get_option('single_meta_pos') == 'bottom' ) add_filter('arras_postfooter', 'arras_postmeta'); else add_filter('arras_postheader', 'arras_postmeta'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php arras_above_post() ?> <div id="post-<?php the_ID() ?>" <?php arras_single_post_class() ?>> <?php arras_postheader() ?> <div class="entry-content"> <?php the_content( __('<p>Read the rest of this entry »</p>', 'arras') ); ?> <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', 'arras'), 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> <!-- <?php trackback_rdf() ?> --> <?php arras_postfooter() ?> </div> <?php arras_below_post() ?> <a name="comments"></a> <?php comments_template('', true); ?> <?php arras_below_comments() ?> <?php endwhile; else: ?> <?php arras_post_notfound() ?> <?php endif; ?> <?php arras_below_content() ?> </div><!-- #content -->
Forum: Fixing WordPress
In reply to: Display latest post from a certain category on a “page”Thank you! Very helpful. I’ll try this.
Forum: Fixing WordPress
In reply to: Display latest post from a certain category on a “page”Here’s the page in question: https://www.framsidan.net/senaste-numret/
To somehow have that static url display the latest post from a category…Forum: Fixing WordPress
In reply to: RSS only shows latest postBut that’s not making any sense. The error is in the middle of a post where there’s no code for me to alter. What can I do about it?
Forum: Fixing WordPress
In reply to: RSS only shows latest postIt’s set at 10.
Forum: Fixing WordPress
In reply to: query_post showposts in two different loops both on the same pageYou did it! Thanks! Congratulations on being my new favorite person ??
Forum: Fixing WordPress
In reply to: query_post showposts in two different loops both on the same pageOk, so now I did this:
<?php if(in_category('10')) { query_posts("showposts=10"); } elseif(in_category('1')) { query_posts("showposts=5"); } ?>
But it’s still showing six posts in cat 1 and four posts in cat 10. Hmm…
Edit: Should this be instead of the loop? It’s currently outside the regular loop, just added the code.
Forum: Fixing WordPress
In reply to: Several archive pages, how?Actually that would help, so thanks, but I found what I was doing wrong. I needed to add
<?php /* Don't remove this line. */ require('./wp-blog-header.php'); ?>
at the beginning of my new file.
But thanks for the help!
Forum: Plugins
In reply to: Event Calendar, non-widgetMy host wouldn’t help me with this, they said it was insecure. Is there something similar, like a calendar where I enter events and have them show up in a list, not using allow_url_fopen?
Nevermind, I did it. Thank you! ??
Thank you SO much, I’ve been trying to do this for such a long time. Even now though, however I’m having some trouble, with me being a PHP beginner and all.
This is what I have at the moment where the code needs to be implemented:
else: echo "<div class='greeting'>» <a href='"; echo bloginfo('wpurl'); echo "/wp-admin/' class=greeting>Inställningar</a>"; echo "» <a href=https://www.doublepeace.se/forum/profile.php?id="; global $current_user; echo $current_user->ID; echo " class=greeting>"; echo "Forumprofil</A>"; echo "» <a href='"; echo get_settings('siteurl') . '/wp-login.php?action=logout&redirect_to=' . $_SERVER['REQUEST_URI']; echo "' class=greeting>Logga ut</a>\n</div>\n";
The
» <a href='"; echo bloginfo('wpurl'); echo "/wp-admin/' class=greeting>Inställningar</a>";
part is what should only show up if you’re admin or editor. If you could just shove your code in there for me I’d be very, very grateful, I’ve been trying for a while now constantly messing up ?? This is my slightly modified version of the Login Anywhere plugin, btw.
Either way, thank you very much for the help so far!
Forum: Plugins
In reply to: Event Calendar, non-widgetAh, thank you very much! I’ve tried setting it up via Google Calendar but I need my host to set allow_url_fopen in php.ini for it to work. I hope they’re working this weekend…