Title: dtek516's Replies | WordPress.org

---

# dtek516

  [  ](https://wordpress.org/support/users/dtek516/)

 *   [Profile](https://wordpress.org/support/users/dtek516/)
 *   [Topics Started](https://wordpress.org/support/users/dtek516/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dtek516/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dtek516/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dtek516/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dtek516/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dtek516/favorites/)

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [ios 10 links not working.](https://wordpress.org/support/topic/ios-10-links-not-working/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/ios-10-links-not-working/#post-8300631)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] Events not showing up in blog loop](https://wordpress.org/support/topic/events-not-showing-up-in-blog-loop/)
 *  [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/events-not-showing-up-in-blog-loop/#post-7021432)
 * Hey 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 ) );`
 * via: [https://wordpress.org/support/profile/nicosantos](https://wordpress.org/support/profile/nicosantos)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Enable comments on Custom Post Types](https://wordpress.org/support/topic/enable-comments-on-custom-post-types/)
 *  [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/enable-comments-on-custom-post-types/#post-2927933)
 * I 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [PHP variable as css value](https://wordpress.org/support/topic/php-variable-as-css-value/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-variable-as-css-value/#post-3141604)
 * GOT IT! You guys were a big help!!! Thank you so much, have a great day. 😀
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [PHP variable as css value](https://wordpress.org/support/topic/php-variable-as-css-value/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-variable-as-css-value/#post-3141603)
 * sorry, 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [PHP variable as css value](https://wordpress.org/support/topic/php-variable-as-css-value/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-variable-as-css-value/#post-3141602)
 * Thanks guys. But still nothing. 🙁 Do I need to enclose anything in quotes or
   escape anything?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [PHP variable as css value](https://wordpress.org/support/topic/php-variable-as-css-value/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-variable-as-css-value/#post-3141554)
 * i 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [PHP variable as css value](https://wordpress.org/support/topic/php-variable-as-css-value/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-variable-as-css-value/#post-3141550)
 * i 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [PHP variable as css value](https://wordpress.org/support/topic/php-variable-as-css-value/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-variable-as-css-value/#post-3141523)
 * by the way:
    i tried the method here, to no avail.
 * [http://css-tricks.com/css-variables-with-php/](http://css-tricks.com/css-variables-with-php/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Apache to ISS](https://wordpress.org/support/topic/apache-to-iss/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/apache-to-iss/#post-2410178)
 * UPDATE:
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Apache to ISS](https://wordpress.org/support/topic/apache-to-iss/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/apache-to-iss/#post-2410175)
 * By 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; ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Facebook Connect] [Plugin: Simple Facebook Connect] main settings problem](https://wordpress.org/support/topic/plugin-simple-facebook-connect-main-settings-problem/)
 *  [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-simple-facebook-connect-main-settings-problem/#post-1894230)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Mobile Store](https://wordpress.org/support/topic/mobile-store/)
 *  Thread Starter [dtek516](https://wordpress.org/support/users/dtek516/)
 * (@dtek516)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/mobile-store/#post-2041290)
 * Well, 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.

Viewing 13 replies - 1 through 13 (of 13 total)