edit cod php

Plugin-uri, teme, configurare

Moderator: Moderatori

alezu2000
PHPRomania Supporter
Mesaje: 7
Membru din: Mie Ian 30, 2013 10:31 pm

edit cod php

Mesajde alezu2000 » Joi Ian 31, 2013 10:49 am

Cod: Selectaţi tot

<h3 class="widgettitle">Antrenament</h3>
<?php if (have_posts()) : ?>
<?php $recent = new WP_Query("cat=1&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

<?php the_excerpt(); ?>




Cum asi putea edita acest cod ca sa nu mai apara si acea bucata din post? sa apara doar titlu articolului ..fara "sadadasdasdas..dsadasa <read more>" ?



Nsilviu
Average Member
Mesaje: 136
Membru din: Dum Dec 21, 2008 10:18 pm
Contact:

Re: edit cod php

Mesajde Nsilviu » Joi Ian 31, 2013 12:02 pm

AI incecat asa:

Cod: Selectaţi tot

<h3 class="widgettitle">Antrenament</h3>
<?php if (have_posts()) : ?>
<?php $recent = new WP_Query("cat=1&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

ALT + F2
Scrii " Free the fish "
Apesi Enter.
Sistem de operare: Linux

alezu2000
PHPRomania Supporter
Mesaje: 7
Membru din: Mie Ian 30, 2013 10:31 pm

Re: edit cod php

Mesajde alezu2000 » Joi Ian 31, 2013 12:15 pm

da..si nu mai merge indexul.. apare totul alb

Avatar utilizator
morjanmihail
Junior Member
Mesaje: 33
Membru din: Dum Dec 30, 2012 11:04 am
Localitate: Timisoara
Contact:

Re: edit cod php

Mesajde morjanmihail » Joi Ian 31, 2013 4:54 pm

Ai putea incerca sa ascunzi cu CSS. E mai simplu.
Web Designer & Developer. Website-uri personale:
- http://softeam.ro
- http://morjanmihail.info

alezu2000
PHPRomania Supporter
Mesaje: 7
Membru din: Mie Ian 30, 2013 10:31 pm

Re: edit cod php

Mesajde alezu2000 » Joi Ian 31, 2013 5:21 pm

si cum sa fac asta mai exact? nu prea ma pricep...ce am invatat mai mult din experimentare :D

ViezuREX
Senior Member
Mesaje: 502
Membru din: Joi Dec 13, 2012 1:35 pm

Re: edit cod php

Mesajde ViezuREX » Joi Ian 31, 2013 7:32 pm

alezu2000 scrie:si cum sa fac asta mai exact? nu prea ma pricep...ce am invatat mai mult din experimentare :D

Fie cu

Cod: Selectaţi tot

style='display: none;'
la nivel de element.
fie direct in fisierul CSS daca adaugi proprietatea display: none; pe clasa sau ID-ul elementului


Înapoi la “Wordpress”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 9 vizitatori