I am trying to edit a free template that I have downloaded so as to incorporate a different plugin in it.
The issue I am having with the template is that the twitter feed gets blocked by my company’s privacy settings and I need a way to by pass them.
I thought about changing the twitter feed plugin that’s incorporated in the template with a different plugin which can by pass the settings (Twitter feed for WordPress).
To enable this plugin I am supposed to enter the short code [twitter-feed option="value"] in a page.
My questions are the following:
1. What is the php equivalent of the above short code?
2. What should I edit on the page template or the main index template so as to replace the original embedded plugin with the php code above, without changing the look of the template?
Of course I might be incorrectly assuming this is possible.
I have given this a fair amount of tries based on pure logic and bits and pieces of information I have been reading, but as I have no coding knowledge this constantly ends up as a fatal error in the code.
Thank you for your time.
Page template code:
<?php get_header(); ?></p>
<p><div id="page">
<div id="wrapper" class="container_12 clearfix">
<div id="content" class="clearfix">
<div class="c_top">
<div class="c_bottom clearfix"></p>
<p> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1> <b><?php edit_post_link('Edit This Page', '<p>', '</p>'); ?> </b>
<div class="entry">
<?php the_content('<em>Continue reading →</em>'); ?></p>
<p> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?></p>
<p> </div>
</div>
<?php endwhile; endif; ?></p>
<p> </div><!-- content bottom #end -->
</div><!-- content top #end -->
</div><!-- content #end -->
<?php get_sidebar(); ?>
</div>
<!-- wrapper #end -->
<?php get_footer(); ?>
Main Index Template code:
<?php get_header(); ?>
<?php
global $options;
foreach ($options as $value) {
global $$value['id'];
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
?>
<div id="page">
<div id="wrapper" class="container_12 clearfix">
<div id="content" class="clearfix">
<div class="c_top">
<div class="c_bottom clearfix">
<?
if ($pt_twittype == "SearchWord") { ?>
<div id="twitterSearch" class="tweets "></div>
<script type="text/javascript">
$('#twitterSearch').liveTwitter('<?php echo $pt_twitvalue; ?>', {limit: 10, rate: 5000});
</script>
<? } else { ?>
<div id="twitterUserTimeline" class="tweets "> </div>
<script type="text/javascript">
$('#twitterUserTimeline').liveTwitter('<?php echo $pt_twitvalue; ?>', {limit: 15, refresh: false, mode: 'user_timeline'});
</script>
<? } ?>
</div><!-- content bottom #end -->
</div><!-- content top #end -->
</div><!-- content #end -->
<?php get_sidebar(); ?>
</div><!-- wrapper #end -->
<?php get_footer(); ?>