Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joshuacamp

    (@joshuacamp)

    ‘option_value’ is correct and has no char limit set. I’ve sent the XML file, but everything looks correct other than the order since adding a second round of options. THe file contains only ~100 options now and still has the same issues. I’m going to set-up the php file regardless, and may just go ahead and fast track that rather than wasting 20 minutes manually moving the order in the XML.

    What I’m attempting to do (when you see the XML it’ll make sense) is to simply reorder the CTA and Latest Tweet options so they appear before the “Override options for logged-in users” section. Easy enough in the XML file, but it would be fantastic to have it work in the option tree panel for adding more options in the future.

    Thanks again,
    -Josh

    If you’re looking to show the parent, you can use this (this is the parent, linked to the parent page):

    <?php $parent_title = get_the_title($post->post_parent);?>
    <a href="<?php echo get_permalink($post->post_parent) ?>"><?php echo $parent_title;?></a>
     <?php echo $children;?>

    I have to warn you though,what you are trying to do is bad for SEO. The current page title should be the <H1>, and the child should be your <H2>.

    Breadcrumbs would be the proper way to display a backwards architecture. Think about your links as you would a Table of Contents on an essay…

    If you want complete breadcrumbs, you can paste this in your functions.php file before the close php at the end:

    function the_breadcrumb() {
    	if (!is_home()) {
    		echo '<a href="';
    		echo get_option('home');
    		echo '">';
    		bloginfo('name');
    		echo "</a> » ";
    		if (is_category() || is_single()) {
    			the_category('title_li=');
    			if (is_single()) {
    				echo " » ";
    				the_title();
    			}
    		} elseif (is_page()) {
    			echo the_title();
    		}
    	}
    }

    Then add this in your page/post template:

    <?php the_breadcrumb(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)