csjWP
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Theme Handbook Block themes chapter isn’t foundThanks.
Forum: Fixing WordPress
In reply to: Customiser range slider and default resetI see π. Thanks for much for investigating.
- This reply was modified 3 years, 9 months ago by 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”.Forum: Fixing WordPress
In reply to: Please help, I can’t update my site to 4.6.1UPDATE!
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. π
Forum: Fixing WordPress
In reply to: Please help, I can’t update my site to 4.6.1Okay thanks. I will give it a try tonight.
Forum: Fixing WordPress
In reply to: post_class(); usageWOW!!!
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.
Forum: Fixing WordPress
In reply to: post_class(); usageThanks 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>
Forum: Fixing WordPress
In reply to: Custom taxonomy link -> Oops! That page canβt be found.Hey, sorry for the late reply, I’ve been busy. But I must certainly will give it a shot.
Forum: Fixing WordPress
In reply to: CMB2 repeatable group not showing up on pageI’m gonna shoot myself and die from shame π
echo $img; echo $title; echo $link;
Forum: Fixing WordPress
In reply to: CMB2 repeatable group not showing up on pageSorry but I forgot some details.
I added
var_dump($entries);
right beforeecho $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" } }
Forum: Fixing WordPress
In reply to: CMB2 repeatable group not showing up on pageHi 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.Forum: Fixing WordPress
In reply to: js files not loading β I can’t spot the error.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.
Forum: Fixing WordPress
In reply to: js files not loading β I can’t spot the error.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.Forum: Fixing WordPress
In reply to: js files not loading β I can’t spot the error.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.
Forum: Fixing WordPress
In reply to: js files not loading β I can’t spot the error.I’m not using a child theme, I’m trying to build a custom theme.