النتائج 1 إلى 4 من 4

الموضوع: من فضلكم مساعدة في ترتيب المقالات في صفحة رئيسية في wordpress

  1. #1

    من فضلكم مساعدة في ترتيب المقالات في صفحة رئيسية في wordpress



    سلام عليكم

    هدا رابط الموقع و بستعمل : http://www.freemovie.byethost7.com

    مند أسبوع و أنا بحاول أعمل ترتيب للمقالات بهده الطريقة www.dimaplus.com

    عايز يكون عرض المقالات في الصفحة رئيسية بهده الطريقة صورة و في جانبها معلومات

    حاولت لكن هده النتيجة http://www.freemovie.byethost7.com

    وصف إلي أنا عمل بيجي تحت الصورة و كل مقال بيجي تحت المقال الأول و أنا إلي عايز يجي بجانبه

    هدا ملف index.php
    كود PHP:
    <?php get_header(); ?>

        <div id="content">

        <?php if (have_posts()) : ?>

            <?php while (have_posts()) : the_post(); ?>

          <div class="post" id="post-<?php the_ID(); ?>"> </div><!--/post -->
              <!-- <div class="date"><span><?php// the_time('M') ?></span> <?php// the_time('d') ?></div>-->
              <div class="feature clearfloat" id="lead">
                       <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Lien Permanent vers <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                     
                        <?php $image get_post_meta($post->ID'image'$single true); // affichage d'image?>
             "<img src="<?php echo $image?>" /> 
              <!-- affichage des champs personaliser-->
            <div class="infofilm">  Par :<?php the_author_link(); //affichage d'acteur ?><br/>
              <?php 
                    
    if(function_exists("the_tags"))
                        
    the_tags('Acteurs : '', ''<br />');     //affichage des tag                
                
    ?>
                Genre : <?php the_category(','// affichage des categories?>
                <?php //the_author();desactiver l'affichage d'auteur ?>
                <?php 
                    
    //if(function_exists("the_tags"))
                        //the_tags('\\\\ tags: ', ', ', '<br />');                 desactiver l'affichage des tag    
                
    ?></div>
                          <div class="title">
              <div class="postdata"><span class="category"><?php //the_category(', ')//desactiver l'affichage des commentaires ?></span> <span class="comments"><?php comments_popup_link('Aucun Commentaire »''1 Commentaire »''% Commentaires »'); ?></span></div>
              </div>    
                </div><!-- end feature-->
            <?php endwhile; ?>
            <div class="page-nav"> <span class="previous-entries"><?php next_posts_link('Articles Précédents'?></span> <span class="next-entries"><?php previous_posts_link('Articles Suivants'?></span></div><!-- /page nav -->
        <?php else : ?>

            <h2>Non Trouvé</h2>
            <p>Désolé, mais vous recherchez quelque chose qui ne se trouve pas ici.</p>

        <?php endif; ?>
          </div><!--/content -->
          <div id="footer">
                  <span class="mangoorange">
             <a href="http://www.i3theme.com">i3Theme 1.6</a> crée par <a href="http://www.ndesign-studio.com">N.Design Studio</a>, customisé par <a href="http://www.mangoorange.com/">MangoOrange&trade;</a>, <br/> sponsorisé par <a href="http://www.web-hosting-top.com/">Web Hosting Reviews &amp; Free Coupons</a> et <a href="http://www.b4udecide.com/">Web Hosting</a>. Traduction <a href="http://www.niss.fr">(niss.fr)</a>.
             </span>
            </div>
        </div><!--/left-col -->
    <?php 
    $current_page 
    $post->ID// Hack to prevent the no sidebar error
    include_once("sidebar-right.php"); 
    //get_sidebar();
    ?>
    <?php get_footer
    (); ?>
    و هدى ملف Style.css

    كود PHP:
    body {
        
    background#42afdc url(images/html-bg.gif) repeat-x;
        
    font75%/170ArialHelveticasans-serif;
        
    padding0px;
        
    margin0px;
        
    color#333333;
    }
    {
        
    color#44a1d0;
        
    text-decorationnone;
    }
    a:visited {
        
    color#5EAFD7;
    }
    a:hover {
        
    text-decorationunderline;
    }
    {
        
    margin0px 0px 15px;
    }
    img {
        
    bordernone;
    }
    ul {
        
    margin5px 0px 15px;
        
    padding-left10px;
    }
    ul li {
        
    margin0px;
        list-
    stylenone;
        
    backgroundurl(images/bullet-orange.gifno-repeat;
        
    padding-left20px;
    }
    ol {
        
    margin5px 0px 15px;
        
    padding-left20px;
    }
    ol li {
        
    margin0px;
    }
    form {
        
    margin0px;
        
    padding0px;
    }
    small {
        
    font-size90%;
    }
    blockquote{
        
    backgroundurl(images/blockquote.gifno-repeat left top;
        
    color#777;
        
    font-styleitalic;
        
    padding10px 5px 5px 36px;
    }
    #page {
        
    backgroundurl(images/main-bg.jpgno-repeat center top;
    }
    #wrapper {
        
    width990px/* +200*/
        
    margin0px auto;
        
    positionrelative;
    }

    /* ------------------------------------- header area  */
    #header {
        
    height120px;
    }
    /* site title */
    h1 {
        
    positionabsolute;
        
    top40px;
        
    left25px;
        
    color#FFFFFF;
        
    margin0px;
        
    padding0px;
        
    fontnormal 30px/100"Trebuchet MS"Arialsans-serif;
    }
    h1 ah1 a:visited {
        
    color#FFFFFF;
        
    text-decorationnone;
    }
    h1 a:hover {
        
    color#000000;
        
    text-decorationnone;
    }
    .
    description {
        
    positionabsolute;
        
    top77px;
        
    left25px;
        
    color#000000;
        
    font12px ArialHelveticasans-serif;
    }
    /* search form */
    #searchform {
        
    positionabsolute;
        
    top0px;
        
    right0px;
        
    backgroundurl(images/searchform-bg.pngno-repeat right bottom;
        
    height37px;
        
    width210px;
    }
    #searchform #s{
        
    background#ffffff url(images/form-field-bg.gif) no-repeat ;
        
    height17px;
        
    width148px;
        
    margin6px 5px 0px 10px;
        
    padding3px 7px 2px 5px;
        
    color#999999;
        
    bordernone;
    }
    #searchform #searchsubmit { 
        
    backgroundurl(images/search-btn.pngno-repeat left top;
        
    height24px;
        
    width24px;
        
    bordernone;
        
    text-indent: -999%;
        
    line-height1px;
        
    margin-top6px;
    }

    /* ------------------------------------- main content area  */
    #left-col {
        
    width745px;/*200*/
        
    floatleft;
        
    margin-top11px;
    }
    /* main menu */
    #nav {
        
    backgroundurl(images/content-top-bg.pngno-repeat left top;
        
    height26px;
    }
    #nav ul{
        
    list-stylenone;
        
    margin0px 0px 0px 25px;
        
    padding0px;
        
    fontbold 12px/100ArialHelveticasans-serif;
    }
    #nav ul li{
        
    margin0px 1px 0px 0px;
        
    padding0px;
        
    floatleft;
        
    backgroundnone;
    }
    #nav ul li a{
        
    padding5px 7px 6px 7px;
        
    text-decorationnone;
        
    color#000000;
        
    displayblock;
    }
    #nav li a:visited{
        
    text-decorationnone;
        
    color#000000;
    }
    #nav li a:hover, #nav .current_page_item a, #nav .current_page_item a:visited{
        
    text-decorationnone;
        
    background#2e91c6 url(images/nav-item-hover.gif) repeat-x;
        
    color#ffffff;
    }
    /* sub menu */
    #subnav {
        
    background#ecebeb;

    }
    #subnav ul {
        
    margin0px;
        
    padding3px 5px 5px 5px;
        list-
    stylenone;
        
    font11px/100ArialHelveticasans-serif;
    }
    #subnav li {
        
    border-right1px solid #D8D8D8;
        
    padding0px 7px;
        
    margin0 0 5px;
        
    display:inline;
        
    line-height18px;
        
    backgroundnone;
    }
    #subnav li a, #subnav li a:visited, #subnav .page_item {
        
    text-decorationnone;
        
    color#333333;
    }
    #subnav .current_page_item a, #subnav .current_page_item a:visited {
        
    color#3b9acc;
    }
    #subnav li a:hover {
        
    text-decorationnone;
        
    color#3b9acc;
    }

    /* content */
    #content {
        
    padding25px 25px 15px 25px;
        
    width695px;/*200*/
        
    background#ffffff;
        
    clearboth;
        
    overflowhidden;
    }
    .
    post {
        
    padding0px;
        
    clearboth;
        
    overflowhidden;
    }
    .
    post .date {
        
    height50px;
        
    width45px;
        
    backgroundurl(images/calendar.gifno-repeat;
        
    fontnormal 22px ArialHelveticasans-serif;
        
    color#666666;
        
    text-aligncenter;
        
    padding0px 2px 0 0;
        
    line-height100%;
        
    floatleft;
    }
    .
    post .date span {
        
    height16px;
        
    displayblock;
        
    fontnormal 11px ArialHelveticasans-serif;
        
    color#ffffff;
        
    text-aligncenter;
        
    padding-top5px;
    }
    .
    post .title {
        
    floatleft;
        
    margin-left10px;
        
    width638px;/*200*/
    }
    .
    postdata {
        
    font-size90%;
        
    color#999999;
    }
    .
    postdata a, .postdata a:visited {
        
    color#999999;
        
    text-decorationnone;
    }
    .
    postdata a:hover {
        
    color#44a1d0;
        
    text-decorationnone;
    }
    .
    postdata .category{
        
    backgroundurl(images/mini-category.gifno-repeat;
        
    padding-left18px;
        
    floatleft;
    }
    .
    postdata .comments{
        
    backgroundurl(images/mini-comment.gifno-repeat;
        
    padding-left18px;
        
    floatright;
    }
    .
    mini-add-comment {
        
    backgroundurl(images/mini-down-arrow.gifno-repeat left center;
        
    padding-left12px;
        
    floatright;
    }
    .
    entry {
        
    padding10px 0px 5px;
        
    clearboth;
    }
    .
    entry p.submeta{
        
    font-size11px;
    }


    /* post title */
    h2 {
        
    color#333333;
        
    margin3px 0 2px;
        
    padding-bottom4px;
        
    fontnormal 150%/100"Lucida Grande"Arialsans-serif;
        
    border-bottomdotted 1px #CCCCCC;
    }
    h2 ah2 a:visited {
        
    color#333333;
        
    text-decorationnone;
    }
    h2 a:hover {
        
    color#44a1d0;
        
    text-decorationnone;
    }
    h3 {
        
    color#666666;
        
    margin5px 0px 5px;
        
    fontbold 110%/110"Lucida Grande"Arialsans-serif;
    }

    /* next & previous page navigation */
    .page-nav {
        
    clearboth;
        
    backgroundurl(images/navigation-bg.gifno-repeat left center;
        
    height21px;
    }
    .
    page-nav a, .page-nav a:visited {
        
    color#ffffff;
        
    text-decorationnone;
    }
    .
    page-nav a:hover {
        
    color#000000;
        
    text-decorationnone;
    }
    .
    previous-entries a {
        
    floatleft;
        
    padding-left10px;
        
    margin-left10px;
        
    backgroundurl(images/navigation-left.gifno-repeat left center;
    }
    .
    next-entries a {
        
    floatright;
        
    padding-right10px;
        
    margin-right10px;
        
    backgroundurl(images/navigation-right.gifno-repeat right center;
    }

    /* next & previous post navigation */
    .post-nav {
        
    clearboth;
        
    padding-bottom35px;
        
    margin-top: -15px;
        
    font-size95%;
    }
    .
    post-nav a, .post-nav a:visited {
        
    color#999999;
        
    text-decorationnone;
    }
    .
    post-nav a:hover {
        
    color#000000;
        
    text-decorationnone;
    }
    .
    post-nav .previous a {
        
    floatleft;
        
    padding-left20px;
        
    backgroundurl(images/post-nav-previous.gifno-repeat left center;
    }
    .
    post-nav .next a {
        
    floatright;
        
    padding-right20px;
        
    text-alignright;
        
    backgroundurl(images/post-nav-next.gifno-repeat right center;
    }

    /* ------------------------------------- comment area  */
    h3#comments {
        
    backgroundurl(images/comments.gifno-repeat;
        
    padding-left22px;
        
    fontnormal 140%/120ArialHelveticasans-serif;
        
    clearboth;
    }
    h3#respond {
        
    backgroundurl(images/respond.gifno-repeat;
        
    padding-left22px;
        
    fontnormal 140%/120ArialHelveticasans-serif;
        
    margin20px 0px 0px;
        
    clearboth;
    }
    /* commentform */
    #commentform {
        
    margin-top10px;
    }
    #commentform label {
        
    font-weightbold;
        
    color:#666;
        
    font-size100%;
        
    padding-left5px;
    }
    #commentform small {
        
    color#999999;
        
    font-size90%;
    }
    #commentform input {
        
    font110ArialHelveticasans-serif;
        
    width220px;
        
    padding5px 3px 3px 7px;
        
    backgroundurl(images/form-field-bg.gifno-repeat;
        
    border-top1px solid #e6e6e6;
        
    border-right1px solid #E2E2E2;
        
    border-bottom1px solid #E2E2E2;
        
    border-left1px solid #e6e6e6;
    }
    #commentform textarea {
        
    font110ArialHelveticasans-serif;
        
    width480px;
        
    height140px;
        
    background:url(images/form-field-bg.gifno-repeat;
        
    bordersolid 1px #e6e6e6;
        
    padding5px 3px 3px 7px;
    }
    #commentform #submit {
        
    font12px/100ArialHelveticasans-serif;
        
    color#000000;
        
    backgroundurl(images/submit-btn.gifno-repeat top left;
        
    bordernone;
        
    width135px;
        
    height25px;
        
    padding-bottom6px;
        
    margin-left355px;
    }
    #commentform #submit:hover {
        
    backgroundurl(images/submit-btn.gifno-repeat bottom left;
    }
    #commentform textarea:focus, #commentform input[type="text"]:focus {
        
    bordersolid 1px #3b9acc;
    }

    /* comment list */
    .commentlist {
        
    margin10px 0px;
        
    padding-left45px;
        
    line-height130%;
    }
    .
    commentlist li{
        
    padding5px 10px;
    }
    .
    commentlist .alt {
        
    background#F4F4F4;
    }
    .
    commentlist cite {
        
    font-weightbold;
        
    font-stylenormal;
        
    font-size110%;
        
    color#669900;
    }
    .
    commentlist cite a, .commentlist cite a:visited {
        
    color#669900;
    }
    .
    commentlist small {
        
    margin-bottom5px;
        
    displayblock;
        
    font-size87%;
    }
    .
    commentlist small a, .commentlist small a:visited{
        
    color#999999;
    }

    /* ------------------------------------- footer area  */
    #footer {
        
    backgroundurl(images/content-bottom-bg.pngno-repeat;
        
    padding12px 0px 0px 10px;
        
    font-size87%;
        
    color#282828;
        
    line-height15px;
    }
    #footer a, #footer a:visited {
        
    text-decorationnone;
        
    color#000000;
    }
    #footer a:hover {
        
    text-decorationunderline;
    }

    /* ------------------------------------- sidebar area  */
    /* sidebar */
    #sidebar-right{
        
    float:right;
        
    margin-left10px;
    }
    #sidebar-left {
        
    floatleft;
        
    margin-right10px;
    }
    #sidebar-right,
    #sidebar-left {
        
    width210px;
        
    color#666666;
        
    line-height160%;    
    }
    #sidebar-right p, 
    #sidebar-left p  {
        
    margin0px 0px 15px;
    }
    #sidebar-right h3, 
    #sidebar-left h3 {
        
    fontbold 12px/100ArialHelveticasans-serif;
        
    color#666666;
    }
    #sidebar-right h3 a, #sidebar-right h3 a:visited, 
    #sidebar-left h3 a, #sidebar-left h3 a:visited {
        
    color#666666;
    }
    #sidebar-right h3 img, 
    #sidebar-left h3 img  {
        
    vertical-alignmiddle;
    }
    #sidebar-right a, #sidebar-right a:visited, 
    #sidebar-left a, #sidebar-left a:visited  {
        
    color#000000;
        
    text-decoration:none;
    }
    #sidebar-right a:hover, #sidebar-right a:focus, #sidebar-right a:active, 
    #sidebar-left a:hover, #sidebar-left a:focus, #sidebar-left a:active  {
        
    text-decoration:underline;
    }
    #sidebar-right ul, 
    #sidebar-left ul {
        
    list-stylenone;
        
    margin;
        
    padding;
    }
    #sidebar-right ul li, 
    #sidebar-left ul li {
        
    backgroundurl(images/bullet-orange.gifno-repeat;
        
    padding-left18px ;
    }
    #sidebar-right ul li ul li, 
    #sidebar-left ul li ul li {
        
    backgroundurl(images/bullet-grey.gifno-repeat;
        
    padding-left12px ;
    }

    /* ------------------------------------- widget styles  */
    /* archives widget */
    #archives ul li {
        
    backgroundurl(images/mini-archive.gifno-repeat;
    }
    /* recent comments widget */
    #recent-comments ul li {
        
    backgroundurl(images/mini-comment.gifno-repeat;
    }
    /* category widget */
    #categories ul li,
    #categories-1 ul li,
    #categories-2 ul li,
    #categories-3 ul li,
    #categories-4 ul li,
    #categories-5 ul li,
    #categories-6 ul li,
    #categories-7 ul li,
    #categories-8 ul li,
    #categories-9 ul li {
        
    backgroundurl(images/mini-category.gifno-repeat;
    }
    /* recent posts widget */
    #recent-posts ul li {
        
    backgroundurl(images/mini-page.gifno-repeat;
    }
    /* links widget */
    #links ul li {
        
    backgroundurl(images/mini-blogroll.gifno-repeat;
    }
    /* meta */
    #meta .site_admin {
        
    backgroundurl(images/cog.gifno-repeat;
    }
    #meta .rss {
        
    backgroundurl(images/mini-rss.gifno-repeat;
    }
    #meta .login {
        
    backgroundurl(images/mini-user.gifno-repeat;
    }
    #meta .check {
        
    backgroundurl(images/mini-check.gifno-repeat;
    }
    #meta .wordpress {
        
    backgroundurl(images/mini-wp.gifno-repeat;
    }
    /*Style dyal les champs personalise  DEBUT */
    .post-meta-key {
    color:#000000;
    font:Georgia"Times New Roman"Timesserif;
    float:left;}
    .
    post-meta {
    color:#0000CC;}
    /*Style dyal les champs personalise  FIN */

    /* calendar */
    #calendar table {
        
    margin0px auto;
    }
    #calendar td {
        
    padding0px 4px;
    }

    /* alignments */
    .center {
        
    text-aligncenter;
    }
    img.centerimg[align="center"] {
        
    displayblock;
        
    margin-leftauto;
        
    margin-rightauto;
    }
    .
    left {
        
    floatleft;
    }
    img.leftimg[align="left"] {
        
    float:left;
        
    margin2px 10px 5px 0px;
    }
    .
    right {
        
    floatright;
    }
    img.rightimg[align="right"] {
        
    float:right;
        
    margin2px 0px 5px 10px;
    }
    .
    clear {
        
    clear:both;
    }
    hr.clear {
        
    clear:both;
        
    visibilityhidden;
        
    margin0px;
        
    padding0px;
    }
    .
    hidden {
        
    clearboth;
        
    visibilityhidden;
    }

    /* MangoOrange.com footer (must be included, but can be modified) */
    div#footer span.mangoorange{
        
    color#fff;
        
    }
        
    div#footer span.mangoorange a, 
    div#footer span.mangoorange a:visited{
        
    color#fff;
        
    font-weightbold;
        
    text-decorationnone;
        }
        
    div#footer span.mangoorange a:hover{
        
    text-decorationunderline;
        }    
    /*------------------------------------- TEST*/
    .feature {
        
    background:#FFFFFF;
        
    padding:10px;
        
    border-bottom:1px dotted #b6b6b6;
        
    border-top:1px dotted #b6b6b6;
        
    border-left:1px dotted #b6b6b6;
        
    border-right:1px dotted #b6b6b6;
        
    width:400px;
            
    height:300px;
        }

    .
    feature:hover {
        
    background:#ededed;
        
    }
        
    .
    feature p#rightcol p {
        
    margin:0;
        }
    .
    feature img#rightcol img {
        
    padding:1px;
        
    border:1px solid #000;
        
    }
    #leftcol .feature {
        
    margin-bottom5px;
        
    border-bottom:none
        
    }
    /*-------Test style affichage info film---------*/
    .infofilm
    {
    text-align:left;









  2. #2


    كيف أخلي كل مقال يكون في جانب الأول بدل ميكون تحته

    Up Up






  3. #3
    عضو سوبر نشيط
    تاريخ التسجيل
    Aug 2007
    المشاركات
    674


    عدل بملف style.css

    كود:
    #content { 
        padding: 25px 25px 15px 25px; 
        width: 695px;/*200*/ 
        background: #ffffff; 
        clear: both; 
        overflow: hidden; 
    }
    بـ

    كود:
    #content { 
        padding: 25px 25px 15px 25px; 
        width: 695px;/*200*/ 
        background: #ffffff; 
        clear: both; 
        overflow: hidden; 
        display:inline;
    }
    بالتوفيق





    __________________
    Professional Java?Script Programmer and Web Developer

  4. #4


    عدلت الملف لكن بدون فائدة

    لا يزال المشكل ذي ما هو

    محدش عنده فكرة تانية ???










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض