dtek516
Forum Replies Created
-
Forum: Themes and Templates
In reply to: ios 10 links not working.Correction: only the first normal post’s links are working. The second post’s image links correctly, but then it’s title and read more links wont work, nor any links after.
Forum: Plugins
In reply to: [The Events Calendar] Events not showing up in blog loopHey Jason,
I came looking for the same thing. Since youre new to wordpress, I’d look into wp_query. Which goes like this:<?php $args = array( 'post_type' => 'post' ); $category_posts = new WP_Query($args); if($category_posts->have_posts()) : while($category_posts->have_posts()) : $category_posts->the_post(); ?> ** DO YOUR STUFF HERE ** <?php } ?> <?php endwhile; else: ?> Oops, there are no posts. <?php endif; ?>
Thats a VERY basic example of how it works. But with that said, here is a post I just found solving our issue.
The theme seems to be using a custom query to generate the posts instead of using the global loop!
You’ll need to modify the query to include the tribe_events post type. The very basic way to include events would be something like:
$zerif_latest_loop = new WP_Query( array( 'post_type' => array('post',' tribe_events'), 'posts_per_page' => $zerif_total_posts, 'order' => 'DESC','ignore_sticky_posts' => true ) );
Forum: Fixing WordPress
In reply to: Enable comments on Custom Post TypesI had the same issue, I’m using Custom Post Type UI, and already had made and began using my CPT, so resetting and starting over wasnt an option.
I happen to have access to my db, using CPanel/phpAdmin
I looked up my cpt type in the POSTS table, and went through each existing and ‘post’ and changed COMMENT_STATUS from CLOSED to OPEN.
Now, my comments are displaying. I had the comments option enabled, but not before I started making posts. So, my guess is that it only affects future posts.
Forum: Themes and Templates
In reply to: PHP variable as css valueGOT IT! You guys were a big help!!! Thank you so much, have a great day. ??
Forum: Themes and Templates
In reply to: PHP variable as css valuesorry, i think i may be on to it.
the value i needed was:
transform:rotate(<?php echo $random_number;?>deg);
with that added ‘deg’.. i tried to just add it,as you see, but its not showing up in the source code when rendered on the page. should i be using quotes?
Forum: Themes and Templates
In reply to: PHP variable as css valueThanks guys. But still nothing. ?? Do I need to enclose anything in quotes or escape anything?
Forum: Themes and Templates
In reply to: PHP variable as css valuei figured i could use
<?php $random_number = mt_rand(-20, 20);?> <div class="entry" style=" transform:rotate(<?php echo $random_number; ?>); -ms-transform:rotate(<?php echo $random_number; ?>); /* IE 9 */ -moz-transform:rotate(<?php echo $random_number; ?>); /* Firefox */ -webkit-transform:rotate(<?php echo $random_number; ?>); /* Safari and Chrome */ -o-transform:rotate(<?php echo $random_number; ?>); /* Opera */
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
but i dont know how to format it for html/php
I also wanted it to pick a different random number for each post in the loop.
Thank you very very much for any help you can provide. ??
Forum: Themes and Templates
In reply to: PHP variable as css valuei did try, but i was having a very hard time entering/exiting the php and html. (im a graphics guy..lol)
would you happen to know how to do it?
Forum: Themes and Templates
In reply to: PHP variable as css valueby the way:
i tried the method here, to no avail.Forum: Fixing WordPress
In reply to: Apache to ISSUPDATE:
I removed this line:
echo' <a href="' . get_field('image_' . $i) . '"';?> rel="lightbox[<?php the_title(); ?>]"> <?
and it all loads up..but this means I cannot use the LIGHTBOX popups..
anybody know of a lightbox issue with IIS?
Forum: Fixing WordPress
In reply to: Apache to ISSBy the way here is a template/template block comparison:
WORKS:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <?php for($i=1; $i<11; $i++){ //loop 6 times if(get_field('image_' . $i)){ //check if there is an image on each iteration of the loop echo' <img src="' . get_field('image_' . $i) . '"/>';} } ?> </div> </div> </div> <?php endwhile; endif; ?>
DOES NOT WORK:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <div id="image_gallery2" style="float: right;"> <?php for($i=1; $i<7; $i++){ //loop 6 times if(get_field('image_' . $i)){ //check if there is an image on each iteration of the loop echo' <a href="' . get_field('image_' . $i) . '"';?> rel="lightbox[<?php the_title(); ?>]"> <? echo' <img src="' . get_field('image_' . $i) . '"/></a>'; //output results } } ?> </div> <div style="width: 680px;"> <?php the_content(); ?> </div> </div> </div> </div> <?php endwhile; endif; ?>
I’m getting the same issue. and I see that others are as well. I like this plugin and I’d rather fix this, then to use something else.
Could it be a FB update issue? I dont really see how though.
All I know is that within the SFC settings page, I enter my API etc, hit Save Changes, and nothing gets saved.
Forum: Fixing WordPress
In reply to: Mobile StoreWell, yes. I have ecwid store specific code block on each PAGE.
So for a pizza restaurant, I have a page (pizza-restaurant), which has the ecwid category code.So I’m looking for a plugin, ideally, that allows me to schedule when the page displays the ecwid code, or when it skips to a <h1> This Store is Closed After 10pm</h1>
I’m looking into developing my own plugin I guess. Can;t seem to find that type of GUI anywhere.