Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2013, 16:28
carlosjdelgadoc
 
Fecha de Ingreso: agosto-2013
Ubicación: caracas
Mensajes: 4
Antigüedad: 10 años, 8 meses
Puntos: 0
Pregunta Debe escribir un título más descriptivo para el tema (PROBLEMA the_content)

Ante todo, el titulo esta así por q el sistema no me dejaba poner mi titulo normal.


El siguiente codigo es una pagina q estoy ayudando a acomodar y utiliza plugins de wordpress.

Código PHP:
Ver original
  1. <html>
  2. <head>
  3. <?php require_once("../wp-load.php");?>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <!-- <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> -->
  6. <link rel="stylesheet" type="text/css" href="ccsdiv.css" />
  7. <title> Practica Div </title>
  8. <?php include("funcionesN.php");?>
  9.  
  10. </head>
  11. <body bgcolor="#707070">
  12.  
  13. <?php estructura(1);?>
  14. <?php cuerpo();?>
  15. <?php estructura(2);?> 
  16.            
  17.            
  18.            
  19.            
  20. <?php
  21. function cuerpo()
  22. {
  23.  
  24. $cat=7;
  25.   if (isset($_GET['cat'])){$cat=$_GET['cat'];}
  26.  
  27.  
  28. ?>
  29.            
  30.            
  31.            
  32.            
  33.            
  34.            
  35. <?php $recent = new WP_Query("cat=".$cat."&showposts=1&no_found_rows=1&hreveron=10");?>
  36.                
  37.                
  38.                
  39. <?php if($recent->have_posts()){ ?>
  40.  
  41.  
  42.  
  43. <?php while($recent->have_posts()) : $recent->the_post();
  44.  
  45.  
  46.  
  47.  
  48. $var_pos=stripos(the_content2('More...'),'<img');
  49.             $var_pos_99i9=$var_pos;
  50.            
  51.            
  52.            
  53.       // substr ( string $string , int $start [, int $length ] )
  54.        substr(the_content2('More...'),$var_pos);
  55.        $var_pos2=stripos(substr(the_content2('More...'),$var_pos),'>');
  56.        
  57. $mi_img=substr(the_content2('More...'),$var_pos,$var_pos2+1); //hasta aqui con <img .... />
  58.         $mi_img_ori= $mi_img;
  59.        
  60.        
  61.      //  echo "++++-+++".$mi_img."++++-+++";
  62.         $var_pos=stripos($mi_img,'src=')+5;
  63.         $var_pos2=stripos(substr($mi_img,$var_pos),'"');
  64.         $mi_img=substr($mi_img,$var_pos,$var_pos2); //hasta aqui solo el src=" ..."
  65.        
  66.         $mi_img=foto_real($mi_img);
  67.        
  68.        
  69.  
  70.        
  71.        
  72.  
  73. ?>
  74.  
  75.  
  76.  
  77.  
  78.  
  79. <div style="float:left; width:100%; background-color:#efefef">
  80.    
  81.         <div style="float:left; width:100% ">
  82.                
  83.                     <div style="float:left; width:100%;  background-color:#efefef; margin-left:10px; max-width:85%;  clear:both; word-wrap: break-word; " >
  84.                    
  85.                     <div id="titulo"; style="text-align:center" > <?php echo the_title2();?></div>
  86.                    
  87.                     </div>
  88.                    
  89.                     <div style="float:left;width:100%; height:2px; background-color:#efefef" ></div>
  90.                    
  91.                     <div style="float:left; width:100%;  background-color:#efefef; margin-left:10px; max-width:85%;  clear:both; word-wrap: break-word; " >
  92.                    
  93.                     <div id="resumen"> <?php echo the_content2('More...');?> </div>
  94.                    
  95.                     </div>
  96.                    
  97.                 </div>
  98.             </div>
  99.  
  100.             <!-----  separador  -->
  101.             <div style="float:left;width:100%;height:10px; background-color:#FFFFFF"></div>
  102.             <!-----  separador  -->
  103.            
  104.             <?php endwhile; ?>
  105.            
  106.             <?php
  107.             }
  108.             ?>         
  109.             <?php
  110.             }
  111.             ?>
  112. </body>
  113. </html>
  114.  
  115. <?php
  116. ?>


Mi duda es la siguiente, cuando muestro la pagina, el articulo, dígase la entrada, se muestra con un ¨more...¨, cuando en realidad quiero ver el articulo completo. Que parte del codigo debo modificar, creo q tiene q ver algo con the_content2, pero mor mas vueltas que le he dado no doy con la solución. Ayuda por favor.:stress:

Última edición por Nekko; 13/08/2013 a las 05:44