Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • Thread Starter csjWP

    (@csjwp)

    Thanks.

    Thread Starter csjWP

    (@csjwp)

    I see πŸ˜€. Thanks for much for investigating.

    • This reply was modified 3 years, 9 months ago by csjWP.
    Thread Starter csjWP

    (@csjwp)

    Hi James,
    thanks for getting back. No I tried Calendly. But that doesn’t work for me, it is too narrow focused on just one type of meeting. You can’t attach a select menu to an appointment. And just comes with way too much “branding”.

    Thread Starter csjWP

    (@csjwp)

    UPDATE!

    I downloaded my entire WordPress install to my MAMP htdocs folder. Exported the SQL database. Opened the .sql and edited all links from mysite.org to localhost/wordpress, saved it, and imported it into localhost/phpMyAdmin.

    Logged in to the Admin/dashboard and successfully updated the site and plugins.

    Can’t I just replace all the files on the live server, with the new updated ones from the local install – except for the wp-config.php and media files?

    Thanks, I appreciated it. I don’t wanna mess this up. πŸ˜€

    Thread Starter csjWP

    (@csjwp)

    Okay thanks. I will give it a try tonight.

    Thread Starter csjWP

    (@csjwp)

    WOW!!!

    Thanks a bunch. I can’t possible grasp how I could have missed $iso->ID for $post->ID.

    But that array_map and implode was new to me, I need to go study some more PHP. I’m not where I need to be.

    Thanks, again. You are a lifesaver.

    Thread Starter csjWP

    (@csjwp)

    Thanks for the help and clarification implenton

    I will try to read through it and see if I can find a simple solution I understand. Because what I what to do seems trivial, but when I start looking for documentation and trying to solve it. It gets too complicated for me very fast.

    I have a custom post type with a custom taxonomy assigned to it. And I need to somehow loop through each post and store the taxonomy(s) slug that is assigned to each post in a variable that I can echo out inside my opening div tag efter the class.

    I have been trying to string together a WP_Query loop that uses the get_terms(); But I break apart. I had managed to create the button for the filter navigation. But this last part is tripping me up.

    This is as far as I have come:
    From my archive-projects.php

    
    <!-- Add Iostope filter button list -->
    <div class="button-group filter-button-group">
    	<button data-filter="*">Alle</button>
    	<?php
    		$terms = get_terms("typologi");
    		$count = count($terms);
    		if ($count > 0) {
    			foreach ($terms as $term) {
    				echo "<button data-filter='.".$term->slug."'>" . $term->name . "</button>\n";
    			}
    		}
    	?>
    </div><!-- .button-group -->
    

    But when I turn my attention to the content-projects-index.php things get out of hand and no matter what I’ve tried.

    
    $args = array(
    	'post_type' => 'projects'
    );
    
    /* The WP_Query */
    $iso = new WP_Query( $args );
    
    if ( $iso->have_posts() ) {
    	// The Loop
    	while ( $iso->have_posts() ) {
    		$iso->the_post();
    		$terms = get_the_terms( $iso->ID, 'typologi' );
    			foreach ($terms as $term) {
    				echo '<div class="element-item . $term->slug">';
    			}
    				the_post_thumbnail();
    				the_title( sprintf( '<h3 class="item-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>
    				<h5><?php echo get_the_term_list( $post->ID, 'typologi', 'Typologi: ', '', '' ); ?></h5>
    	}
    			<?php echo '</div>'?><!-- .element-item -->
    
    }
    

    I should say that this is the HTML markup I’m aiming for:
    Isotope Selectors

    <div class="grid">
      <div class="element-item transition metal">...</div>
      <div class="element-item post-transition metal">...</div>
      <div class="element-item alkali metal">...</div>
      <div class="element-item transition metal">...</div>
      <div class="element-item lanthanoid metal inner-transition">...</div>
      <div class="element-item halogen nonmetal">...</div>
      <div class="element-item alkaline-earth metal">...</div>
      ...
    </div>
    
    • This reply was modified 7 years, 7 months ago by csjWP.
    • This reply was modified 7 years, 7 months ago by csjWP. Reason: added Isotope markup and link
    • This reply was modified 7 years, 7 months ago by csjWP.
    Thread Starter csjWP

    (@csjwp)

    Hey, sorry for the late reply, I’ve been busy. But I must certainly will give it a shot.

    Thread Starter csjWP

    (@csjwp)

    I’m gonna shoot myself and die from shame πŸ˜€

    
    echo $img;
    echo $title;
    echo $link;
    
    Thread Starter csjWP

    (@csjwp)

    Sorry but I forgot some details.

    I added var_dump($entries); right before echo $entries;

    And it spits out this. So it is working, I just don’t seem to be able to echo it out.

    array(1) {
      [0]=>
      array(4) {
        ["title"]=>
        string(10) "test title"
        ["image_id"]=>
        int(112)
        ["image"]=>
        string(75) "http://example..com/wp-content/uploads/2016/09/image.jpg"
        ["link"]=>
        string(19) "http://example..com"
      }
    }
    • This reply was modified 7 years, 7 months ago by csjWP.
    • This reply was modified 7 years, 7 months ago by csjWP.
    Thread Starter csjWP

    (@csjwp)

    Hi Justin,

    Was actually the first key i tried, since that is the way it’s done in the documentation. But it’s the same. I’m still not getting anything.

    1. First I did this,
    $entries = get_post_meta( get_the_ID(), '_fp_carousel_repeat_group', true );

    2. Then added the $prefix like this,
    $entries = get_post_meta( get_the_ID(), $prefix . 'carousel_repeat_group', true );

    3. And then finally I switched,
    $entries = get_post_meta( get_the_ID(), $prefix . 'carousel_metabox', true

    But I’m gonna leave it as 2 without the Β§prefix . going forward and see if I can get it working.

    Thread Starter csjWP

    (@csjwp)

    Hi Andrew and Steve, thanks for help.

    It embarrassing, but…

    There was a problem with the specific page template I was trying to create, and Andrew was right about the wp_footer(). I did have a footer.php file with wp_footer(); but I had commented it out in my template file.

    Sorry for wasting your time, but thanks again anyways.

    Thread Starter csjWP

    (@csjwp)

    Thanks Steve,
    I will try and see if I can get wp_die(); to output anything. Right now I’m too stupid to use it.

    Thread Starter csjWP

    (@csjwp)

    Hi Andrew,

    Yes I do. I have it at the end in my footer.php just before the closing body tag. And navigation.js and skip-link-focus-fix.js are loading onto the page.

    The strange this is, that a plugin which I have deactivated and delete completely from the plugins folder – the folder is empty – in Debugger its .css and .js files are still appearing in the markup. But the Console and Network tab doesn’t show them. (Firefox).

    Something is off :/

    • This reply was modified 7 years, 7 months ago by csjWP.
    Thread Starter csjWP

    (@csjwp)

    I’m not using a child theme, I’m trying to build a custom theme.

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