Forum Replies Created

Viewing 15 replies - 1 through 15 (of 48 total)
  • Thread Starter dekraan

    (@dekraan)

    Thanks! Can you use the emailadress I mailed you with, instead of the blog automessage, for your reply?

    I am very curious!

    Thread Starter dekraan

    (@dekraan)

    Email sent! ??

    Thread Starter dekraan

    (@dekraan)

    Hi Tobias,

    That is indeed strange. When I try it by copy pasting the link, and selecting import format CSV, it works!

    But when I download that same file again, just to be sure, and then choose to upload the file to tablepress and set import format to csv and hit the importbutton, it gives me the error again.

    So, at least uploading it works, thats great! But it would be much nicer if there was a fix for this curious problem.

    Thread Starter dekraan

    (@dekraan)

    Hi Tobias,

    Sure! Thank you for your reply.

    All I did was take a simple table, 3×3 and save it as .csv

    Here is the link:

    link!

    Thread Starter dekraan

    (@dekraan)

    Hi webenfoto, ah, I am just fiddling with my own site, so it is manageable to do it the manual way. Maybe switching hosts is the only way then…

    Thread Starter dekraan

    (@dekraan)

    Hi webenfoto,

    I solved it by downloading the full Twenty Thirteen theme from this location, extracting it (through winzip or something similar) and then copying the twentythirteen folder from my desktop with ftp into my theme-folder.

    Just copy paste it over your existing folder. It overwrites the old theme, but since I work with a child-theme, that’s no problem.

    Thread Starter dekraan

    (@dekraan)

    Thank you for your reply. It only strengthens my good feelings, so I think I will give it a go ??

    Thread Starter dekraan

    (@dekraan)

    Hi Esmi,

    Thank you for your advice. I’ll go for a child because I also want to edit a little bit more than just the css to get it right.

    Do you have experience with the theme and think it is a good base to start from?

    Thread Starter dekraan

    (@dekraan)

    Hi Andrew,

    yes it does, very much. I thought at first that it made my site disappear, but that is because you missed a > at the end. Now it works great! And I’ve learnt something about those braces and if and else. Couldn’t be better! A sunday well spent, even if this is the only thing I do ??

    Thread Starter dekraan

    (@dekraan)

    Hi Andrew,

    thank you for the link. I don’t really know that much of what I am doing, and I noticed the examples there have the echo part between { and }. In my (working) code, it is not. How should I arrange this?

    Just by looking at w3schools I thought something like:

    <?php
    if (is_home())
    echo '<div id="home">text</div>';
    else
    {
    echo '<div id="other">text></div>';
    }
    ?>

    Thread Starter dekraan

    (@dekraan)

    Hi! I mean on the search results page. I want to use this plugin to create a list of all of our authors. But we have about 60 now (and want to grow) and some of them have added a description of themselves that is close to 100 or 150 words. I don’t want to change that, but with this plugin it makes for one terribly long list…

    So, where in the topscreenshot it says “Joe is a great author for our site”… If that snippet could be reduced to 50 signs or something randomly changeable, it would be perfect!

    Thread Starter dekraan

    (@dekraan)

    For anyone still interested: this seems to do the trick:

    <?php if ( is_page() ) { ?>
    <ul><?php
      if($post->post_parent){
        $parent=get_post($post->post_parent);
        $children = '<li><a href="'.get_permalink($post->post_parent).'">'.$parent->post_title.'</a></li>';
        $children .= wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
      }else{
        $children = '<li><a href="'.get_permalink($post).'">'.$post->post_title.'</a></li>';
        $children .= wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
      }
    echo $children; ?>
    </ul>
    <?php } ?>

    The secret was starting out with a little is_page code!

    Thread Starter dekraan

    (@dekraan)

    Found a new one, that almost seems to sort it out. Only problem with the code below, is that it doesnt display the parent link on the parent page… is there a way to combine something from these 3 examples of code to make my idea work?

    <?php
    
    /* if the current pages has a parent, i.e. we are on a subpage */
    if($post->post_parent){
    	$children = wp_list_pages("title_li=&include=".$post->post_parent."&echo=0"); // list the parent page
    	$children .= wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); // append the list of children pages to the same $children variable
    } 
    
    /* else if the current page does not have a parent, i.e. this is a top level page */
    else {
    	$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); // form a list of the children of the current page
    }
    
    /* if we ended up with any pages from the queries above */
    if ($children) { ?>
    	<ul class="submenu">
    		<?php echo $children; /*print list of pages*/ ?>
    	</ul>
    <?php } ?>
    Thread Starter dekraan

    (@dekraan)

    I have no idea what you are talking about, unfortunately. But that is all my fault ??

    Do you mean excluding the home from the equasion? That would be great, but how to do that?

    Basically, what I am looking for is:

    1. Listing parent and children as links in the sidebar of a page that has children.
    2. Keeping that list of parent an children links when you go to the childpage.
    3. No list of links on a page that has no childpages.

    Thread Starter dekraan

    (@dekraan)

    This is getting closer to the sollution:

    <?php
         if($post->post_parent) { // if the current page has a parent
              $parent_title = get_the_title($post->post_parent);
              $parent_link = get_permalink($post->post_parent);
              $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");?>
              <ul>
              <li><?php echo "<a href='" . $parent_link . "'>" . $parent_title . "</a>"; ?>
              </li>
    
    <?php } else { // if the current page is the parent
              $parent_title = get_the_title($post->ID);
              $parent_link = get_permalink($post->ID);
              $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); ?>
              <ul>
                   <li class="current_page_item"><a href="#"><?php the_title(); ?> Main</a>
                   </li>
    <?php }
    	echo $children; ?>
            </ul>

    Although this also displayes the first post title on my homepage sidebar. And that should be excluded…

Viewing 15 replies - 1 through 15 (of 48 total)