How to style this wp_list_pages markup
try this $children = wp_list_pages(‘title_li=&child_of=”.$post->ID.”&echo=0&link_before=<i class=”icon-something”></i>’); define link_before property in wp_list_pages
try this $children = wp_list_pages(‘title_li=&child_of=”.$post->ID.”&echo=0&link_before=<i class=”icon-something”></i>’); define link_before property in wp_list_pages
I’m just modifying your code please check. Hope it will help. <?php $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID, ‘order’ => ‘ASC’ ); $i = 0; $attachments = get_posts($args); if ($attachments) { foreach ( $attachments as $attachment ) { if($i != 0){ $class=”fantome”; }else{ $class=””;} $imgarr = … Read more
Correct serialized string will be: a:1:{i:0;a:3:{s:4:”name”;s:56:”Song → Black Meen : “So Clean (feat. Dullaah Jin)””;s:4:”file”;s:93:”http://localhost/peace.worldwide/wp-content/uploads/2013/05/03-So-Clean-feat.-Dullaah-Jin.mp3″;s:9:”condition”;s:3:”all”;}} The second long string ( value of key “file” ) had incorrect lenght 98 which should be 93. You might ask why the first long string ( value of key “name” ) has lenght of 56. It looks like it … Read more
It looks like you are providing the [thumb] shortcode with a string that is literally ‘http://example.com’. I am guessing, but I think you need to loose the single quotes wrapping the URL: <?php echo do_shortcode(“[thumb]”.bp_profile_field_data(‘field=2’).”[/thumb]”); ?> So that you only pass the URL and no extraneous characters.
If your server is configured correctly, a request to a PHP file is forwarded to the PHP interpreter. It does not play a role if it is accessed directly, via a link or by clicking on it in a directory listing. I visited both of your URLs. URL 2 shows an error message – an … Read more
In wp_mail() there are filters to adjust from address: // Plugin authors can override the potentially troublesome default $phpmailer->From = apply_filters( ‘wp_mail_from’ , $from_email ); $phpmailer->FromName = apply_filters( ‘wp_mail_from_name’, $from_name ); However they don’t seem convenient for your needs because they don’t provide access to mailer object at the same time. You are probably better … Read more
Use a special category to specify what pages you want on your home page. For the sake of this example, we’ll call it “Featured”. So on each page that you want to show, just add the “Featured” category to it. Then, if you want to remove it from the home page you just un-check that … Read more
From technical perspective wpdb->prepare() essentially trickles down to escaping variables with either (depending on configuration) mysql_real_escape_string() or addslashes(). It’s not inherently more or less secure than any other properly implemented escaping routine. It is closer to specifics of WP and configuration it is aware off.
WordPress primary choice is to do upgrade using direct file IO. So if it’s asking you for FTP credentials it means that it has no access to these files. The easiest way to fix this will be changing file permissions so WordPress could modify them. Of course if you changed those permissions to improve security … Read more
Highlight posts currently being edited on multiple editor site?