shortcode change variable base on user

If this works for you in the template: $s=”[cfdb-table form=”Contact form 1″ show=”Submitted Login,your-email,your-message” search=”AndrewA”]”; echo do_shortcode($s); then you could try: global $current_user; get_currentuserinfo(); $s = sprintf(‘[cfdb-table form=”Contact form 1″ show=”Submitted Login,your-email,your-message” search=”%s”]’,$current_user->display_name); echo do_shortcode($s);

How to get the post of category

<?php // Get the ID of a given category $category_id = get_cat_ID( ‘Category Name’ ); // Get the URL of this category $category_link = get_category_link( $category_id ); ?> <!– Print a link to this category –> <a href=”https://wordpress.stackexchange.com/questions/94519/<?php echo esc_url( $category_link ); ?>” title=”Category Name”>Category Name</a> After you click on the Category Title link, it … Read more

How to add the sidebar in all category page

the following code will work as for per your custom post type add the following code in sidebar.php to show your custom post type category <?php //list terms in a given taxonomy using wp_list_categories (also useful as a widget) $orderby = ‘name’; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; … Read more

Custom Metaboxes, multiple post selection

I’m not sure if select multiple value from the select box is what you want, but from a quick look at you code i would say you should put <select name=”‘.$field[‘id’].'[]” id=”‘.$field[‘id’].'”> instead of <select name=”‘.$field[‘id’].'” id=”‘.$field[‘id’].'”> since you want a multiple select. This is then a html problem, not a WP related.

subscribe to wp through a Faceboo app

Facebook apps are just an iFrame back to a page you host somewhere. So you could build out a page in your WordPress site with your subscription options. For example, using JetPack http://jetpack.me/support/subscriptions/. And then embed that page into a Facebook app and add it as a tab to your Facebook page. 🙂

Thumbs and pictures not showing anymore

The problem is not with TimThumb, it’s with how you are calling TimThumb. Looking at your site, it is trying to load: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://i2.wp.com/ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg?resize=269%2C80&h=80&w=269&a=t&zc=1 If you update the theme or TimThumb config to pass the correct parameters, it will work: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg&resize=269%2C80&h=80&w=269&a=t&zc=1 Since you recently migrated it’s likely that you have been pointing to the hold wp.com … Read more