Questions tagged as 'wordpress'

1
answer

Time in PHP format

I'm creating a function in wordpress to schedule events as follows: add_action( 'wp', 'prefix_setup_schedule' ); function prefix_setup_schedule() { if ( ! wp_next_scheduled( 'send_email' ) ) { wp_schedule_event( time(), 'daily', 's...
asked by 10.04.2014 / 13:56
2
answers

Create page (page) only in PHP code of WordPress

How to create a page only by code? Because it is static, that is, you do not need to enter content through the panel, but to have the URL of that page, you must create a page, even if it is empty, without content. What I need is to have this p...
asked by 24.10.2014 / 15:20
3
answers

Create post in a wordpress and bring in another wordpress automatically

Options: Create a new POST in one wordpress-1, from another wordpress-2. or Everything you create in wordpress-2 be "copied" to wordpress-1 or Create / Register a product in a store -1, from another store -2. [RESOLVED] I...
asked by 27.05.2015 / 21:09
1
answer

How do I add attributes in the img with the_post_thumbnail's WordPress function?

I need to add width="100%" and class="img-responsive" . How do I add to the img if I call it in the index this way? <?php the_post_thumbnail(); ?>     
asked by 10.09.2015 / 07:30
1
answer

How to change the wordpress blog title in php?

I'm in the final stages of developing my blog in wordpress and a few months ago, when I started developing I put a título , but after a lot of research I decided to change it, because I found another similar one. mine is unique - so...
asked by 19.12.2015 / 01:28
1
answer

Order ASC and DESC according to custom_field

I have a site session (WordPress) where I add partners according to the category using Custom Post Type. It's a party hall site. Each category of custom post type represents a branch. Ex of categories: Buffet, Photographers, Etc So far so goo...
asked by 30.10.2014 / 05:12
2
answers

Edit categories and tags in the WordPress front end

I'm trying to set up a page for editing categories, tags, and custom taxonomies via the front end . However, I can not now find the correct function to submit the field update. The code so far: <?php /*Template Name: Page Template Edita...
asked by 11.08.2014 / 05:20
1
answer

Update cart status without leaving the page | Woocommerce 3.4+

<?php global $woocommerce; if ( sizeof( WC()->cart->get_cart() ) < 1 ) { ?> <div style="width: 25%;" class="footer-section <?php echo esc_html($woo);?>"> <a href="<?php echo get_home_url();?>"...
asked by 15.06.2018 / 12:27
1
answer

How should the perfect wordpress blog backup be done?

I've been looking for some time on the internet how to backup the theme I'm developing in wordpress and database . I use xampp and banco de dados in phpMyAdmin . I've found several tutorials, but I'm not feeling secure...
asked by 20.12.2015 / 00:53
1
answer

Orderby in an array

Friends, I'm trying to edit a array , so that it presents the information in ascending or descending order. I'm doing the following: $Recent_Page = get_post_meta(get_the_ID(), 'imic_home_recent_property_no', true); query_posts(array('...
asked by 03.12.2015 / 19:47