Activity Stream
48,167 MEMBERS
6663 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    proxxy.in scnpic.com w7s.org

    Default wordpress help needed

    am writing a plugin and have most of it done, dont wether i am tired but i just cant see the bit i need.

    to display title and link in a code box i am using

    Code: 
    
    $lr_permalink = get_permalink($post->ID);
    
    $lr_title = get_the_title($post->ID);
    if i also want to display the content as formatted code in the box would i use

    Code: 
    
    $lr_content = get_the_content($post->the_post())
    
    or
    
    $lr_content = get_the_content($post->the_content)
    what i want to do is display the content of the post in a code box so people can copy paste it

    thanks
    CrapH Reviewed by CrapH on . wordpress help needed am writing a plugin and have most of it done, dont wether i am tired but i just cant see the bit i need. to display title and link in a code box i am using $lr_permalink = get_permalink($post->ID); $lr_title = get_the_title($post->ID); Rating: 5


  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    proxxy.in scnpic.com w7s.org
    ok i have figured it is

    Code: 
    $lr_content = get_the_content($post->post_content);
    so can someone check i have formatting right here

    Code: 
    
     <div style="float:right;width:60%;color:#000000;"><strong>codebox</strong><textarea name="' . $lr_title . '" rows="" cols="" style="width:90%;height:60px;overflow-y:auto;overflow-x:hidden;font-family:arial,times,courier;font-size:10px" readonly="readonly" onclick="this.focus(); this.select();">&lt;a href=&quot;' . $lr_permalink . '&quot;&gt;' . $lr_title . '&lt;/a&gt; &lt; '  . $lr_content . ' &lt;</textarea>


  4.     
    #3
    Member
    Website's:
    proxxy.in scnpic.com w7s.org
    ok the final code i am using is this

    PHP Code: 

    $lr_permalink 
    get_permalink($post->ID);

    $lr_title get_the_title($post->ID);

    $lr_content get_the_content($post->post_content);

        if ( !
    is_feed() && !is_page() ) {

            
    $content .= '<div align="center" style="border:1px solid #999999;background:#DFFFA5;color:#000000;padding:7px;margin:10px;font-size:11px">

          <div style="float:left;width:40%;text-align:left;color:#000000"><div style="font-size:13px;color:#000000;"><strong>Insert this info in to your forum movie posts!</strong></div>1. <em><strong>Click</strong> inside the codebox</em><br />2. <em><strong>Right-Click then Copy</strong></em><br />3. <em><strong>Paste</strong> the text into your thread</em></div>

          <div style="float:right;width:60%;color:#000000;"><strong>codebox</strong><textarea name="' 
    $lr_title '" rows="" cols="" style="width:90%;height:60px;overflow-y:auto;overflow-x:hidden;font-family:arial,times,courier;font-size:10px" readonly="readonly" onclick="this.focus(); this.select();">[url=' $lr_permalink ']' $lr_title '[/url]; ' $lr_content '; </textarea> 
    but this gives an output with all of the <p><li> and such tags how can i remove these,

    i am willing to pay for help with this


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wordpress Theme Needed
    By Z_UpLoAdEr in forum Graphics Area
    Replies: 3
    Last Post: 16th Aug 2012, 12:19 AM
  2. Wordpress help needed
    By KINGTHE_ALI in forum Webmaster Discussion
    Replies: 7
    Last Post: 10th Jan 2012, 12:06 PM
  3. Help needed in wordpress
    By -={MINDFREAK}=- in forum Web Development Area
    Replies: 1
    Last Post: 31st Aug 2011, 04:53 AM
  4. Wordpress Sitemap Help Needed
    By BigBang24 in forum Webmaster Discussion
    Replies: 4
    Last Post: 31st Mar 2011, 08:04 AM
  5. Wordpress Help Needed
    By DJGaurav in forum Wordpress
    Replies: 0
    Last Post: 1st Sep 2009, 05:58 AM

Tags for this Thread

BE SOCIAL