Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Having the exact same issue.

    https://www.brokenswordsforever.com

    In the sidebar, the top one is in the widget. The next one is via shortcode. Neither shows up.

    CaiusMartius

    (@caiusmartius)

    Same here. Installed it last night and I still receive the error message and can’t upload files as small as 1920×1080 pixels at 763kb

    Thread Starter CaiusMartius

    (@caiusmartius)

    Tried reinstalling several times, no avail.

    Thread Starter CaiusMartius

    (@caiusmartius)

    It says “Page can’t be found” and then when I go in my ftp to look at the folder the entire folder is completely gone as well as the plug in files.

    I have the exact same problem. The plugin itself works on an old site as it was but I cannot access configuration. I just added this plug in to a second site and it will not show either the icons nor will it let me access the configuration.

    Thread Starter CaiusMartius

    (@caiusmartius)

    Solved. Removed wp_reset(query); at the very end and it worked like a charm.

    Thread Starter CaiusMartius

    (@caiusmartius)

    Ok.

    I’ve actually got this mostly figured out. HOWEVER, for seem reason it’s repeating the very first post (see the linked page above).

    Here is my current code setup.

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<div class="entry-wrapper">
    				<div class="header-wrapper">
    					<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
    				</div><!-- .site-branding -->
    				<?php
    				 if ( has_post_thumbnail()) {
    				   $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
    				   echo '<div class="tag-img">';
    				   the_post_thumbnail('large');
    				   echo '</div>';
    				 }
    				 ?>
    				<div class="entry-content">
    					<?php the_content(); ?>
    					<?php
    						$orig_post = $post;
    						global $post;
    						$tags = wp_get_post_tags($post->ID);
    
    						if ($tags) {
    							$tag_ids = array();
    						foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
    							$args=array(
    								'tag__in' => $tag_ids,
    								'post__not_in' => array($post->ID),
    								'caller_get_posts'=>1
    							);
    
    						$my_query = new wp_query( $args );
    
    						while( $my_query->have_posts() ) {
    							$my_query->the_post();
    
     						if ( has_post_thumbnail()) {
     						?>
     							<div class="relatedthumb">
     								<a href="<? the_permalink()?>">
    								<?php
    								the_post_thumbnail();
    								?>
    								<br />Played by
    								<?php
    								the_title();
    								?>
     								</a>
     							</div>
     						<?php
      								}
    							}
    						}
    						$post = $orig_post;
    						wp_reset_query();
    					?>
    				</div><!-- .entry-content -->
    			</div>
    		<!-- .entry-footer -->
    </article><!-- #post-## -->
    Thread Starter CaiusMartius

    (@caiusmartius)

    At long last….

    Okay using everyone’s help here’s what I came up with.

    First I realized my original intent using the_date wasn’t going to work as I have BC dates so I needed to create a meta_key to hold the ‘display’ date I wanted for the timeline.

    After that I used this function to populate my array with the meta_key values.

    function get_meta_values( $key = '', $type = 'post', $status = 'publish' ) {
    
        global $wpdb;
    
        if( empty( $key ) )
            return;
    
        $r = $wpdb->get_col( $wpdb->prepare( "
            SELECT pm.meta_value FROM {$wpdb->postmeta} pm
            LEFT JOIN {$wpdb->posts} p ON p.ID = pm.post_id
            WHERE pm.meta_key = '%s'
            AND p.post_status = '%s'
            AND p.post_type = '%s'
        ", $key, $status, $type ) );
    
        return $r;
    }

    Then using a little finesse from both awesome examples by catacaustic and ross I ended up with this on my category page:

    <?php
      $values = get_meta_values ( 'mythos_year' );
            sort($values);
    
      // array to use for results
    	$uniquedates = array();
    
      // loop through posts, populating $years arrays
    foreach ($values as $val) {
    
        if ( ! in_array ($val, $uniquedates) ) {
    		$uniquedates [] = $val;
    		echo "<li><a href='#";
    		echo $val;
    		echo "'>";
    		echo $val;
    		echo "</a></li>";
    		}
    		}
    ?>

    which in turn, led me to the final version here: mythos page.

    Specifically look at the ‘years’ timeline bar along the bottom of the horizontal scroll.

    It’s not 100% functional yet (the page not the code) because I have to go back in and reconfigure the posts to call the meta key value rather than the year, but I know how to do that now thanks to everything I learned doing this.

    Thank you so much, everyone, it’s been extremely helpful.

    Thread Starter CaiusMartius

    (@caiusmartius)

    Change themes and they uploaded fine. It’s definitely something in the theme but can’t find what. Checked the css, checked functions. I’ve searched various parameters like “80” and “attachment” and stuff to see if I could track it down, still no luck.

    Thread Starter CaiusMartius

    (@caiusmartius)

    Apologies, duplicate may have been the wrong choice.

    This looks very promising though. I’ll give that a shot and see what happens. Thank you very much for taking the time to help.

    In this the $values is my array of dates, correct? The the foreachs look at each date ($val) and based on set parameters does ‘something’ or if it is a repeat ‘does something else.’

    Report back in a few. Thanks again.

    M

    Thread Starter CaiusMartius

    (@caiusmartius)

    Hey guys

    Been working on a bazillion things. I appreciate all the responses.

    catacaustic: I actually don’t want the entries in the array removed because I still need all of the other info that’s part of the array, I just want it do something like

    IF Year IS NOT a duplicate print date, title, excerpt
    IF Year IS a duplicate print title, excerpt

    I haven’t been able to figure it out with my beginners knowledge and I don’t really intend on spending more time on it as I really need to get the navigational part of the site functioning first. So far now, I’ll just call the repeated background time stamps a ‘feature.’ ??

    I’ll look at this again once I get the nav part up and working. Horizontal anchors are apparently a pain in the ar$e.

    Thanks again for everyones ideas!

    Michael

    Thread Starter CaiusMartius

    (@caiusmartius)

    Ross,

    This looks great. I’m going to implement it straight away but I need to ask some questions, if that’s cool. I don’t like to just drop something in, I prefer to understand how it’s working so I can troubleshoot better and not bother everyone else. ??

    so I”m guessing $alldates is my array that I build with all of it’s variables in it, correct?
    that means $uniquedates is the array we’re going to build from all of the variables in $alldates?

    line 4 and then 5-9 are setting prev_y to be initial empty? then for each entry in the array the if statement compares the $year variable with prev_y which in the first instance they obviously aren’t equal != so now prev_y becomes whatever $year was on the comparison?

    Does this sound like I’ve understanding it well enough?

    Thread Starter CaiusMartius

    (@caiusmartius)

    RossMitchell,

    Yes, an array is what I suspected and I’ve been muddling through some attempts but I still haven’t figured out how to get php to recognize/drop the duplicates.

    So basically:

    for each page build an array with all data (posts, category, DATE, etc.)
    If the date (Y, in this case) is a first appearance…DO STUFF
    else…DO OTHER STUFF

    I can seem to figure out how to do the ‘first appearance’ part.

    M

    This was a nice fix, thanks Osckar.

    For those who may already have a title_class in their code you can simply add the following:

    cursor: default !important;
    pointer-events: none;

    to your current title_class style and it will accomplish the same thing.

    Michael

    Thread Starter CaiusMartius

    (@caiusmartius)

    Okay, so there is an immense load of information in that log file. Anything in particular I should have my eye out for? It’s about 2400 lines or so for the 20 minutes I needed to shuffle everything around to reactivate and then deactivate the theme (it completely kills wordpress as well so I have to reinstall the old 1.2.2 theme before I can reactivate the child theme.)

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