syrupcore
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: displaying ‘get_links’ in order of additionI dont mean to bump this but… can some one please help me figure out how to limit the links displayed to ‘today’ only?
Forum: Fixing WordPress
In reply to: displaying ‘get_links’ in order of additionre: ID – didn’t even occur to me that it would accomplish the same thing. Thank you oriecat!
It’s still not showing the date added though. I dont geddit.
Forum: Fixing WordPress
In reply to: displaying ‘get_links’ in order of additionI thought so too oriecat but that’s part of my problem (see post 1).
Thanks.
Forum: Fixing WordPress
In reply to: displaying ‘get_links’ in order of additionThe above still isn’t working but now I have another question…
I’d like to limit it to links added today. I was trying to figure out how to do this via wpdb query but can’t get it. I’m sure it’s there. I’m still a PHP noob. Something like, get an array of links that have a date of today and make me a ul li of them, sorted in reverse. Anyone doing this?
Thanks!
Forum: Fixing WordPress
In reply to: Advice on entering tabular data?numsum.com turns out to be an excellent solution in case anyone finds this by searching.
Only two problems really: you’re spreadsheet is not on your server (it’s on numsum’s) and it uses an iframe.
Great stuff though.
Will
Forum: Fixing WordPress
In reply to: displaying ‘get_links’ in order of additionReally? No one? Do I need to give you more info or is there something funny on my face?
Forum: Fixing WordPress
In reply to: Advice on entering tabular data?thanks mark. yeah, that might be a bit above my head. I’m using ‘might’ loosely. Might also be a cool thing to learn.
I have been looking into Active Widgets Grid https://www.activewidgets.com/grid/ but can’t quite wrap my head around it’s implementation.
Anyone used it before or any other suggestions?
Thank you.
Forum: Fixing WordPress
In reply to: get_links sql errorThanks skippy(!) but, I still get the same error. I’ve poured over the get_links page in the codex. I dunno wassup.
Also weird is that if I use this:
<?php get_links(2, '<li>', '</span></li>', '<br /><span>', true, '_updated', true); ?>
I get no error but a) there’s no date on them (it looks like that’s to be on by default) and b) ‘_updated’ isn’t doing what I expected which is to list the links in order they were added.
Any other ideas?
Forum: Fixing WordPress
In reply to: Displaying sibling pages with wp_list_pages.please? pretty please?
Forum: Fixing WordPress
In reply to: Displaying sibling pages with wp_list_pages.I’m so close! Some one, please, help a bruva out.
<ul class="pages">
<?php
$current_page = $post->ID;
$parent = 1;while($parent) {
$page_query = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
$parent = $current_page = $page_query->post_parent;
if(!$parent)
$parent_name = $page_query->post_name;
}
?><?php global $id; // the page id
$kids = get_pages("child_of=$id");
if (count($kids) > 0) {wp_list_pages('child_of=' . $id . '&title_li=&sort_column=menu_order');}
elseif (count($kids) == 0) {wp_list_pages('child_of=' . $parent . '&title_li=&sort_column=menu_order');}?>
</ul>I’ve just been hacking and ctrl+Zing and searching and copying and hacking and ctrl+Zing and sea…. It’s close! It correctly displays the children of pages with children. on the pages with 0 children, it displays ALL pages and their children. I just want it to display the children of it’s parent.
I tried every variable from the upper area (I’m seriously just guessing and trying again… that’s a little closer, guess some more…)
please help! thankyouthankyouthankyou.
Will
Forum: Installing WordPress
In reply to: Title <h1> tags, etcoh.
<h1>oh!</h1>
sorry.
Forum: Installing WordPress
In reply to: Title <h1> tags, etchmm.
code
<h1>code here</h1>Forum: Installing WordPress
In reply to: Title <h1> tags, etcother wise they’re in your sidebar.php, single.php… I just keep hunting until I find it. I used to have a life until:
code
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
happened. ??
Forum: Fixing WordPress
In reply to: Displaying sibling pages with wp_list_pages.https://www.ads-software.com/support/topic/38264
seems to be almost there. If….I….could….just….connect…the…dots…
Forum: Themes and Templates
In reply to: Structure of a WP site. Am I getting this correctly?Thank you Lorelle. An alarming number of those links are purple. I will check out the rest and revisit the purps. Thanks for the invite. If/when I become at all useful, I will most certainly be giving back.
I stopped looking at it for a while. I think that was a good idea. Time to revisit, regroup, recode. See if it makes a little more sense after a break.
Will