Aboobacker.
Forum Replies Created
-
Forum: Plugins
In reply to: [Aboozé Slideshow] [Plugin: Aboozé Slideshow] Using jQuery short tagThanks Nikker and Sakara. I’ll update it in the plugin code. ??
Forum: Fixing WordPress
In reply to: Creating a Search Page not workingCreate a php file with name search.php in your theme folder.
Then copy the following in to that file and save. That’s all.<?php get_header(); ?> <div class="contentmain"> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> <p class="meta"><small>Posted on <?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit', ' | ', ''); ?></small></p> <div class="entry"> <?php the_excerpt(); ?> </div> <div class="info"> <p class="links">» <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p> <p class="tags"><?php the_tags('Tags: ', ', ', ' '); ?></p> </div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Make the necessary editing.
Forum: Fixing WordPress
In reply to: font color and size on sidebarPut your site URL here
Forum: Fixing WordPress
In reply to: Make Different Header Image for Each CategoryRefer: WordPress conditional tag: in_category
Forum: Fixing WordPress
In reply to: How to access wordpress admin using CakePHP username and password?I’ve configured database tables so that when an user register to main site n cakePHP, he would be also getting access to wordpress admin as a contributer.
Now I need a functionality for when an user login to main site, you should be automatically logged in to the WordPress blog. Please help me.Forum: Fixing WordPress
In reply to: How to access wordpress admin using CakePHP username and password?Yes. I know how to integrate wordpress in PHP/ static site. But the matter here is, I need to integrate the LOGIN feature with the blog (wordpress) which is used to login to the cakePHP site.
So, if a registered user is logging in through the site (PHP), he should also be logged in to the wordpress.
NB: Necessary database tables are linked and working charm. But there might be a way something like matching Auth session variables of wordpress with cakePHP.
Please anyone try to get the answer.Forum: Fixing WordPress
In reply to: How to make posts from category not vissable on front pagetry writing a query in the index.php before the loop starts.
<?php query_posts('showposts&cat=-2'); while(have_posts()): ...... .... endwhile; wp_reset_query(); ?>
where ‘2’ is the id of the category you wish to exclude from the posts to be displayed.
Forum: Fixing WordPress
In reply to: Changing Excerpt LengthAdd the below code in your functions.php
function new_excerpt_length($length) { return 200; } add_filter('excerpt_length', 'new_excerpt_length');
Increase the count as per your wish.
Forum: Fixing WordPress
In reply to: Next and Prev links not workingHi bmabetha,
Instead of this query string<?php global $query_string; query_posts( $query_string . '&posts_per_page=4'); ?>
use the following query. It should work.<?php global $paged; if(!$paged) { query_posts('showposts=4'); }else { query_posts('showposts=4&paged=' . $paged); } ?>
It would be great if the code is purely with PHP, and not using JavaScript. But it’s optional only ??
Refer WP-Cycle: https://www.ads-software.com/extend/plugins/wp-cycle/
Forum: Fixing WordPress
In reply to: Video Link – Popup in LIghtbox, etc.?Forum: Fixing WordPress
In reply to: Getting a Post's Featured Image URL@iammikerodriguez: so, your code might be as follows:
<div id="slider"> <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> <div class="content" style="background:url(<?php echo '$feat_image';?>)"> <div style="margin-top:250px; margin-left:10px; margin-right:10px; height:120px; padding:2px; background:url(<?php echo get_option('home'); ?>/main-table-content-bg.png); background-repeat:repeat"> <?php query_posts('showposts=1&category_name=topstories'); ?> <?php while (have_posts()): the_post(); ?> <h3><a href="<?php the_permalink(); ?>" title="Read full post"><?php the_title(); ?></a></h3> <?php the_excerpt();?> <?php endwhile; ?> </div> </div> </div>
Forum: Fixing WordPress
In reply to: Getting a Post's Featured Image URLTry this inside the loop:
<?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); echo '$feat_image'; ?>
You have got the featured image URL ??
Hi, just add this to your functions.php
function excerpt_abooze($text) { return str_replace('[...]', 'Allanon\'s text goes here...', $text); } add_filter('the_excerpt', 'excerpt_abooze');
Enjoy..! ??