Jump to content
php.lv forumi

Wordpress


kamshs

Recommended Posts

Čau, es izmantoju wordpress un esmu mazliet sapinies. Tatad...

 

<?php if (function_exists('post_from_site')) {post_from_site(1,'Pievienot rakstu');} ?>

 

Kā pārrakst'tit kodu, lai teksta vieta 'Pievienot rakstu' sis kods rādītu bildi. ar <img src="blablabla.png" /> meginaju, bet tas ir tiaki html koda saja neder. ceru uz atru palidzibu

Link to comment
Share on other sites

Iespējams, ka funkcija neļauj html izmantot, bet try

<?php if (function_exists('post_from_site')) {post_from_site(1,'<img src="blablabla.png" />');} ?>

Edited by waplet
Link to comment
Share on other sites

Ja es jau so meginaju, neļauj , vajaga citu veidu

 

kaa tur bija ar to

 

$image=("image.jpg")
<?php if (function_exists('post_from_site')) {post_from_site(1,'$image' />');} ?>

 

kka ta bet nu zinu ka nepareizi, ka pareizi bija jaraksta?

Link to comment
Share on other sites

Ja es jau so meginaju, neļauj , vajaga citu veidu

 

kaa tur bija ar to

 

$image=("image.jpg")
<?php if (function_exists('post_from_site')) {post_from_site(1,'$image' />');} ?>

 

kka ta bet nu zinu ka nepareizi, ka pareizi bija jaraksta?

 

:) kas tev tas par nekorektu kodu m?

 

<?php if (function_exists('post_from_site')) {post_from_site(1,'$image' />');} ?>

vispar mainīgo jau var nelikt pēdiņās.

<? if(function_exists('post_from_site')) post_from_site(1,$image); ?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...