Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • I am having the same issue…

    File size is not the problem, pixel size is.

    Would love to know a solution so I do not have to manually resize my photos.

    Thread Starter kyledejour

    (@kyledejour)

    Thanks

    Tried this – still not working am I doing it right?

    <?php
    /*
    Template Name: Press
    */
    ?>
    
    <?php get_header(); ?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <div id="container">
    <?php include (TEMPLATEPATH . '/artists_sidebar.php'); ?>
    <div id="main">
    
    <div id="artistnametitle">
    <?php
    $parent_title = get_the_title($post->post_parent);
    echo $parent_title;
    ?>
    <br><br>
    </div>
    
    <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/selected-works">Selected Works</a> &nbsp;&nbsp;&nbsp; <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/exhibitions">Exhibitions</a> &nbsp;&nbsp;&nbsp; <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/CV">CV</a> &nbsp;&nbsp;&nbsp; <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/press"><u>Press</u></a>
    
    <br><br>
    
    <div id="bookmarks">
    
    <?php
    wp_list_bookmarks('&order=DESC&orderby=id&title_li=&categorize=0&category_name='.$post->post_parent.'&before=&after=<br />');
    ?>
    </div>
    
    </div>
    </div>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <?php get_footer(); ?>
    Thread Starter kyledejour

    (@kyledejour)

    can you offer a suggestion on how to integrate the code you gave me into the code I have now?

    Thread Starter kyledejour

    (@kyledejour)

    Somewhat – I managed to build this somewhat complicated site, but it involved a lot of trial and error.

    Thread Starter kyledejour

    (@kyledejour)

    Thank you.

    I tried the following but It does not work for this or for any other instances without the apostrophe that were working before:

    <?php
    wp_list_bookmarks('&order=DESC&orderby=id&title_li=&categorize=0&category_name='.$post->post_parent.'&before=&after=<br />');
    ?>

    I’m not even sure if that code makes sense. Any suggestions?

    Thread Starter kyledejour

    (@kyledejour)

    I’m not sure how to answer that but this is the full code:

    <?php
    /*
    Template Name: Press
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="container">
    <?php include (TEMPLATEPATH . '/artists_sidebar.php'); ?>
    <div id="main">
    
    <div id="artistnametitle">
    <?php
    $parent_title = get_the_title($post->post_parent);
    echo $parent_title;
    ?>
    <br><br>
    </div>
    
    <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/selected-works">Selected Works</a> &nbsp;&nbsp;&nbsp; <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/exhibitions">Exhibitions</a> &nbsp;&nbsp;&nbsp; <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/CV">CV</a> &nbsp;&nbsp;&nbsp; <a href="https://jessicasilvermangallery.com/<?php
    global $post;
    if($post->post_parent) { $post_data = get_post($post->post_parent);
    echo $post_data->post_name; }
    ?>/press"><u>Press</u></a>
    
    <br><br>
    
    <div id="bookmarks">
    
    <?php
    wp_list_bookmarks('&order=DESC&orderby=id&title_li=&categorize=0&category_name='.$parent_title = get_the_title($post->post_parent).'&before=&after=<br />');
    ?>
    </div>
    
    </div>
    </div>
    
    <?php get_footer(); ?>
    Thread Starter kyledejour

    (@kyledejour)

    Sorry, I’m not sure what you mean.

    I am using this code to call the parent title of the parent page of the child page which I am trying to display the bookmarks

    <?php
    wp_list_bookmarks('&order=DESC&orderby=id&title_li=&categorize=0&category_name='.$parent_title = get_the_title($post->post_parent).'&before=&after=<br />');
    ?>
    Thread Starter kyledejour

    (@kyledejour)

    $parent_title is pulling the name of the Parent page

    Thread Starter kyledejour

    (@kyledejour)

    I don’t think you undertsand what I am trying to do, but I do appreciate the help. Apostrophes in the link’s title are fine – that is why I don’t think it theme specific.

    What I am trying to do is get a list of boomarks tagged with the title of the parent of the page I am trying to list the bookmarks.

    For example on this page (https://jessicasilvermangallery.com/ruairiadh-oconnell/press/) the child is “Press”, the parent is “Ruairiadh O’Connel”

    I wan’t to list all bookmarks that have that tag “Ruairiadh O’Connel”.

    Thread Starter kyledejour

    (@kyledejour)

    Thanks

    I just tried using Twenty Fourteen, no plugins with a custom page template specific to the theme but the content still does not show up. This leads me to belive it is not theme specific.

    Any other ideas? Perhaps back to my intital ideas: Ignore or sanitize the apostrophe? or an alternate code that gets the bookmark by the category slug rather than the title?

    Thread Starter kyledejour

    (@kyledejour)

    OK, I have done that – Now do I add back the custom page template file?

    It seems that the error is there because it refers to another custom section “/artists_sidebar.php”

    Should I upload that too? I do not think that is the issue – The code is still not called up.

    Are you asking me to do this because you belive that under normal circumstances the apostrophe would not affect the code I posted in the inital post?

    Thread Starter kyledejour

    (@kyledejour)

    OK – tried that.

    Still does not work

    however I do get the following errors

    Warning: include(/home/content/j/1/9/j1983essica/html/silvermangallery/wp-content/themes/twentyfourteen/artists_sidebar.php) [function.include]: failed to open stream: No such file or directory in /home/content/j/1/9/j1983essica/html/silvermangallery/wp-content/themes/twentyfourteen/artistpress.php on line 10

    Warning: include() [function.include]: Failed opening ‘/home/content/j/1/9/j1983essica/html/silvermangallery/wp-content/themes/twentyfourteen/artists_sidebar.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/j/1/9/j1983essica/html/silvermangallery/wp-content/themes/twentyfourteen/artistpress.php on line 10

    Thread Starter kyledejour

    (@kyledejour)

    I’m sorry I’m not exactly sure what you mean by this.

    Do you mean activate the Twenty Fourteen theme and create a new custom page template to try see if it works?

    Thread Starter kyledejour

    (@kyledejour)

    I don’t belive that will work because I am using a custom page template to call that code.

    This is the page I am having the issue with: https://jessicasilvermangallery.com/ruairiadh-oconnell/press/

    Thread Starter kyledejour

    (@kyledejour)

    Thanks,

    I tried it without the table but I still have the same issue.

    New Code

    <div id="exhibition_title">
    <div id="exhibition_title_name">
    
    <?php
    $posttags = get_the_tags();
    if ( $posttags ) {
    
    	// sort by last name
    	uasort( $posttags, 'lastNameSort' );
    
    	$tagstrings = '';
    	foreach ( $posttags as $tag ) {
    		$tagstrings .= '<a href="https://jessicasilvermangallery.com/'. $tag->slug . '" class="tag-link-' . $tag->term_id . '">' . $tag->name . '</a>, ';
    	}
    
    	echo trim($tagstrings, ', ');
    }
    ?>
    
    </div>
    
    <div id="slash"><img src="https://jessicasilvermangallery.com/slash.png"></div>
    <div id="exhibition_title_right">
    <div id="exhibition_title_title">
    
    <a href="<?php echo get_permalink(); ?>"><?php echo get_the_title(); ?></a>
    
    </div>
    <div id="exhibition_title_date"><?php $selected_date = simple_fields_value('start_date');
    echo "$selected_date"; ?>–<?php $field_value = simple_fields_value("end_date");
    echo "$field_value"; ?>
    </div>
    </div>
    </div>

    New CSS

    #exhibition_title{
    display:table;
    }
    
    #exhibition_title_name {
    font-size: 18px;
    display:table-cell; vertical-align:middle;
    overflow: hidden;
    }
    
    #exhibition_title_right {
    white-space: nowrap;
    display:table-cell; vertical-align:middle;
    }
    
    #exhibition_title_title {
    text-align:left;
    font-size: 16px;
    padding-top:5px;
    white-space: nowrap;
    
    }
    
    #exhibition_title_date {
    font-size: 14px;
    white-space: nowrap;
    }
    
    #slash {
    display:table-cell; vertical-align:middle;
     }

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