p5systems
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Leaf] Navigationhi
you can do by using the css:
take the class of the navigation menu then you can apply the css
.menu { background-color:#600; }thanks
p5systemsForum: Themes and Templates
In reply to: [Theme: Sundance] Add Post FormatsHi
you can use your own tags to display the posts content and title.
example: <?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<div class=””><?php the_content(); ?></div>
<?php endwhile; // end of the loop. ?>
you can use any html tags.thanks
P5systemsForum: Themes and Templates
In reply to: [Pinboard] How to show only one category of media posts per page<?php
query_posts(‘cat=17&posts_per_page=3’);
while (have_posts()) : the_post();
the_title();
the_content();
endwhile;
?>you can use this for restrict ing the categories. just you need to pass your category id and limit the posts per page.
thanks
P5systemsForum: Themes and Templates
In reply to: [GamePress] Extend wording on main pageYou can use content limit coding so that it will work to extend the limit of content.
use the_excerpt(); function with defined limit words so that we can extend the limit of content.
thanks
P5systemsForum: Themes and Templates
In reply to: how to display posts from a category into two columns?You can use same function <?php query_posts(“showposts=10&cat=1”);
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>to control the limit of images using the css control.
<div class=”main”>
<div class=”img1″>
</div>
</div>
.main { width:600px;}
.img1 { width:300px; } . —— column width
just add the full width for .main class
add prefered width of column for img1, so that we can display two columns.thanks
P5systems<?php endwhile; else: ?>
<?php endif; ?> ”Forum: Themes and Templates
In reply to: Recent Post Thumbnail with CategoriesHI
You can call the function in template file like
<?php query_posts(‘cat=8& posts_per_page=5’);
while ( have_posts() ) : the_post();
the_title();
$thumb_image_url = wp_get_attachment_url(get_post_thumbnail_id($post->ID), ‘thumbnail’);?><img src=”<?php echo $thumb_image_url; ?>” alt=”<?php the_title(); ?>” width=”145″ height=”105″/>
this one help you in easy wayForum: Themes and Templates
In reply to: [Pinboard] How to use slider ?For slider,
after installation of the plugin,
you can paste the shotcode in the post/page using [frontslider]
use php code to display theslide <?php include (ABSPATH . ‘/wp-content/plugins/front-slider/front-slider.php ?>
In the setting section of the slider, you can adjust width, height and few more options.
You can assign the posts to front slider with the selection of check box below th post editorthanks
P5systemsForum: Themes and Templates
In reply to: [Small Business] Static Front PageYou can go to dashboard->settings -> reading you can slect the static your own custom page.
For the custom page you cna create a template or write any custom code to display the information.thanks
P5systemsForum: Themes and Templates
In reply to: [Max Magazine] Increase number of pages in headerYou can call the wp_nav_menu function in the header. so it will display more pages in the site.
Go to dashboard->appereance->menus . you can create menus.thanks
P5systemsForum: Themes and Templates
In reply to: Help removing sub-page from vertical menuHi
You can use wp_nav_menu with depth parameter. os w ecna elminate the sub pages.
<?php wp_nav_menu(‘child_of=9&depth=1’); ?>
depth=1 shows it display the top level pages.
you cna also use get_pages functionThanks
P5systemsForum: Installing WordPress
In reply to: moving to new site isnt working too well.HI
you need to copy all the files from exisitng server into new server.
After that
1. change the database details in wp-config.php file
2. Change the old server url to New server Url In .SQL database file.
3. After changed the URl upload in the phpmyadmin new serverThat s it
Forum: Themes and Templates
In reply to: [Spun] can widgets be placed on the side?HI
you can use widget any where in the theme just by calling the function like
<?php dynamic_sidebar(‘widget name’); ?>
you can use your own widger name.Thanks
P5systemsForum: Themes and Templates
In reply to: [Deux Milles Douze] Remove "leave a reply" from inside pagesHI
Comment the line <?php comments_template( ”, true ); ?> in page.php.
so it will remove the comment or leave reply optionin the pages.
Thanks
ChanduForum: Themes and Templates
In reply to: Show latest posts from a categoryHI
<?php
query_posts(‘order=DESC&cat=19&posts_per_page=3’ );
while ( have_posts() ) : the_post();
the_title();
the_content();
endwhile(); ?>
use this code it will work to get the posts from particular category.
Thanks
P5systemsHI
You can use permalinks() sturute in the admin dashbaord.
use permalink struture.