Static page with formatted post list

The only way I can think of to achieve this without any custom coding is if your theme already displays Category descriptions. When you edit a Category, there is a “description” field where you would place the static information. However, many themes don’t display this information. So, if you try adding a Category Description in … Read more

HOW TO Insert Existing PHP Code to WOrdPress

Generally speaking, you can typically take PHP code and place a comment at the top: <?php /* Plugin Name: My SOAP Plugin */ ?> You can then create a folder for the plugin inside /wp-content/plugins/ (for example, /wp-conten/plugins/my-soap-plugin/) and place the PHP file inside that folder. At that point, you can activate the plugin from … Read more

Display post of specific category on page

There’s nothing in your code that outputs anything for each post. That’s not what $arr_posts->the_post(); does. You need to use template tags like the_title() and the_content() to output those fields: while ($arr_posts->have_posts()) { $arr_posts->the_post(); the_title( ‘<h2>’, ‘</h2>’ ); the_content(); }

how to edit attachments?

Use the Media Uploader. Press Upload Photo above the editor. See the tab “Gallery( number-of-items-attacched )” Manage / Rerrange order To delete: show an item and press Delete (it’s at below of the window)

Embedding BitBucket Code in Posting

Here try the below code, it should give you a good start. // requrires 3 arguments // user, project, path // usage e.g: [bitbucket user=”jespern” project=”django-piston” path=”piston/utils.py”] function bitbucket_code( $atts ) { extract( $atts ); global $post; $path_to_name = str_replace(“https://wordpress.stackexchange.com/”, “_”, $path); $meta_key = “bitbucket_{$user}_{$project}_{$path_to_name}”; $code = get_post_meta( $post->ID, $meta_key, true ); if ( !$code … Read more

PHP $_session is not work in wordpress

Yes, you must use a small change for use session in WordPress. if ( ! session_id() ) session_start(); Better you use a custom function function my_start_session() { @session_cache_limiter(‘private, must-revalidate’); //private_no_expire @session_cache_expire(0); @session_start(); } *Please edit, I write from a mobile

get value from post to sidebar

You did not explain your question well so I am guessing quite a bit but I think you want something like this: function post_ids_wpse() { global $wp_query; $ids = wp_list_pluck($wp_query->posts,’ID’); $scs=””; foreach ($ids as $id) { $scs .= “[wp_value id='{$id}’]”; } echo do_shortcode($scs); } That is very crude. You should check that the various values … Read more