jbiddulph
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: create an FAQ Accordion pluginok so I created a blank wordpress site, added the ACF Pro plugin and a base empty plugin, now what?
Something to do with repeaters?
- This reply was modified 3 years, 6 months ago by jbiddulph.
Forum: Developing with WordPress
In reply to: create an FAQ Accordion pluginI have to write my own because it’s a tech task for a job! I haven’t created a WP Plugin before, I was wondering how to go about it?!
Forum: Developing with WordPress
In reply to: create an FAQ Accordion pluginThanks but it’s the WordPress plug-ins side of things I need help with
Thanks, I have asked on the ACF forums but unfortunately as ACF are based in Australia, probably have to wait until tomorrow
Forum: Fixing WordPress
In reply to: restrict page access based on woocommerce subscriptiongreat thanks, and how to integrate these ?
Forum: Fixing WordPress
In reply to: adding pagination to my custom pageok, I was missing the query_posts() function, I added it in and now I get NEXT | PREVIOUS although page one has 6 items and Page 2 has 0
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $postsPerPage = 6; $postOffset = $paged * $postsPerPage; $args = array( 'numberposts' => -1, 'posts_per_page' => $postsPerPage, 'offset' => $postOffset, 'post_type' => 'article' ); query_posts('post_type=article&paged='. get_query_var('paged')); $posts = get_posts($args); if($posts) { foreach($posts as $post) { echo '<div class="block col-sm-4 col-md-4">'; echo '<h2><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></h2>'; echo get_field("article_title") .'<br />'; echo get_field("date_posted") .'<br />'; echo '<a href="' . get_permalink($post->ID) . '"><img src="'.get_field("article_thumb").'" height="300" /></a>'; echo '</div>'; } } ?>Forum: Installing WordPress
In reply to: Can't set up wp-config.phpSorted
Forum: Fixing WordPress
In reply to: ACF – Advanced Custom Field – How to display?I am using a custom theme: here
Forum: Fixing WordPress
In reply to: How to show my sub categories from parent category?thanks, I am already aware of this… just don’t know how to show the sub categories in my page
Forum: Fixing WordPress
In reply to: want to remove the side bar from one of my category pagesthanks! x
Forum: Fixing WordPress
In reply to: How can I display the POSTS underneath a page in a page templateplease help
Forum: Fixing WordPress
In reply to: How can I display the POSTS underneath a page in a page templatethanks but my page is still blank,
here is my code
<?php /* Template Name: Homepage */ ?> <?php get_header(); ?> <section id="omc-main"> <?php $dispalyed = false; if (function_exists('shareit_output')) { $h_sticky = shareit_output(); $home_page = get_option ('shareit_home', 0); if (!$displayed and $h_sticky && $home_page == 1) { echo $h_sticky; $displayed = true; } } ?> <?php get_template_part( 'loop', 'flexslider-homepage' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> <br class="clear" /> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' => 10; 'paged' => $paged ); $list_of_posts = new WP_Query( $args ); while ( $list_of_posts->have_posts() ): $list_of_posts->the_post(); // Display content of posts //use the respective code from index.php of your theme endwhile; wp_reset_postdata(); ?> </section><!-- /main --> <?php get_sidebar(); ?> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: How can I display the POSTS underneath a page in a page templateForum: Fixing WordPress
In reply to: IF is Homepage tehn show posts?is anyone able to help me on this please?
Forum: Fixing WordPress
In reply to: IF is Homepage tehn show posts?ok cool, so if it was a child theme how can i show posts on my homepage?
thanks