martiniboy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Double query one loopThanks for your help
This is how I have managed it
<?php $quotes = array( 'post_type' => 'testimonial ', 'posts_per_page' => 12, 'orderby' => 'rand' ); // background-color: rgba(0,0,0,0.75); $quotes_query = new WP_Query( $quotes ); // here you might wanna apply some sort of sorting on $result->posts ?> <?php if( $quotes_query->have_posts() ): ?> <div id="homepagegall" class="galleryimage"> <?php while( $quotes_query->have_posts() ) : $quotes_query->the_post(); //this is to create random background colours of text $bgArray= array('#282E33', '#25373A', '#164852', '#495E67', '#FF3838','#FFFFFF'); //create a random number, then use the colour whos key matches the number $myRand = rand(0,(6-1)); $val = $bgArray[$myRand]; ?> <div class="container left"> <?php $image = array(get_field('gallery',425), get_field('gallery',427) ); foreach( $image as $gallery ): $rand = array_rand($gallery, 1);?> <img src="<?php echo $gallery[$rand]['sizes']['thumbnail']; ?>" alt="<?php echo $gallery[$rand]['alt']; ?>" /> <?php endforeach;?> <div class="textbox" style="background-color:<?php echo $val;?>"> <strong><?php the_title();?></strong> <p class="text"><?php the_excerpt();?></p> </div> </div> <?php endwhile; ?> <div class="clear"></div> </div> <?php endif; ?> <?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Not very pretty as I am needing to manually put the id of the pages in get_field() callback but is working,
Although I am getting the same image multiple times but only have a few uploaded – will look into non duplicates in the arrayForum: Plugins
In reply to: [WooCommerce] Update causes wp-admin redirect to my-accountYes
WooCommerce
User Role Editor
WordPress SEO
But replicated site on testing server and only left woocommerce activated but the same issueForum: Plugins
In reply to: [WooCommerce] Update causes wp-admin redirect to my-accountI have the same issue – admin can access the backend but shop manager and other roles which I have created cannot since updating, 2.3.7 did not fix the issue
Forum: Plugins
In reply to: [WooCommerce] Custom roles and permissions in 2.3.6I also have the same issue, have you had any luck?
Forum: Plugins
In reply to: [Booking Xpress] Shortcode PlacementGlad it was useful!
Forum: Plugins
In reply to: [Jamie Social Icons] Pinterest pin it button is not working.Hi I see that you the issue with the pinterest button is only happening on the home page. I installed the responsive theme and all of the plugins that you have installed and did not have the same issue. Which looks like it is an issue/incompatiblity with the code on your custom child theme. Are there any scripts you are only calling on the home page?
Anything I can do to help give me a shoutForum: Plugins
In reply to: [Jamie Social Icons] Icons align vertically instead of horizonatallyHi Susangkd
To make the icons show vertically you just need to alter the style sheet, probably best to amend your themes stylesheet so that when the plugin is updated your changes are not lost.
Depending on your themes style you should just need to add
ul.jamie_social li {
display:block;
float:none;
}Forum: Plugins
In reply to: [Jamie Social Icons] Plugin disappeared???Hi Ryan
Sorry or delay in replying, it appears that the icons are showing again, did you need to do anything or did they just reappear.Forum: Plugins
In reply to: [Jamie Social Icons] Pinterest pin it button is not working.Hi
As the button is showing the image in the settings page that would imply that either the theme or another plugin is causing the issue, try deactivating each plugin one by one to see if you can find a cause. When I am I front of my PC I will see if there is anything in the code which is obvious.Forum: Plugins
In reply to: [Jamie Social Icons] Pinterest pin it button is not working.Hi vejitassj8
I take it that you are on the latest version of my plugin? On the settings page of my plugin are you able to see the Pinterest button or is it just text??
I am only on my ipad at the mo so hard to troubleshoot. If you send me list of plugins and theme you are using I will try to replicate, to fix it.Forum: Plugins
In reply to: [Jamie Social Icons] Alignment issuesHi breadysf
If you could list the plugins I will try to replicate your site and see what is causing the issue.
ThanksForum: Plugins
In reply to: [Jamie Social Icons] Alignment issuesHi breadysf
Could you provide which theme you are using and what other products and I will try to replicate your issue in my testing area to hopefully be able to correct it.Forum: Plugins
In reply to: [Jamie Social Icons] Pinterest pin it button is not working.Hi sangam25488
Is this related to your other isuue running on a localhost???
If so please read reply to that post If not please include link to site so I try to help see what the problem isForum: Plugins
In reply to: [Jamie Social Icons] Google icon not displaying in localhostHi sangam25488
I have never tested my plugin on a localhost because I never thought that it would be needed to work there. Are the buttons on the settings page working, if they are there is an issue with the theme/or other plugins. Have you made sure that your theme includes the
<?php wp_footer();?>
in the footer and<?php wp_head();?>
in the header.
Have you any online space that you are able to test your theme, and share a link to so I may be able to assist moreForum: Plugins
In reply to: [Jamie Social Icons] NextGen GalleryIt is something I have been thinking about for a while, as nextgen is something I install as default so have always wondered about adding my icons to it, I will need to iron out a few bug fixes first but will seriously look into this, so if you have any ideas feel free to let me know, I will always welcome a contributor.