WP and Laravel integration (Updated) [closed]

There is no “generic” way to just smash WP with another app and have it work. It can be roughly split in two cases: Applications run separately on server, installed in different directories, and styled to look as one site (possibly talking to same database, possibly talking to each other via REST API or something). … Read more

how to get my WP site’s IP? [closed]

This is more a general hosting question, rather than WordPress. Nonetheless, since you mentioned that you have your website on WordPress.com, you can have your new domain point to your WordPress site by it’s CNAME. In your case, your CNAME would look be example.wordpress.com (change example to your actual site). This is the recommended approach … Read more

Can’t activate plugin [closed]

Open this file C:\xampp\htdocs\web\wp-content\themes\Total\functions.php go to on line 283 and check how you have added add_action function. It must be like this. add_action(‘tag’,’function_callback’ ); add_action is a function which allows you to attach a function to an action hook and it must not be string eg. ‘add_action’ Please read document about add_action http://codex.wordpress.org/Function_Reference/add_action

How can i include a plugin in my theme folder?

It isn’t good idea to include some plugins directly in your theme, because you loose oportunity to update plugin etc. If you do so manually and update whole theme you can try to put folder with plugin eg. my-plugin in your themes root directory and in functions.php just include main my-plugin.php (folder name and main … Read more

Show wrapper divs if query has results, then loop the results [closed]

Your second query was built up a little incorrectly – expanded and indented, it looks like this: if ($portfolio->have_posts()) : while($portfolio->have_posts()) : $portfolio->the_post(); ?> <div class=”other-post col-sm-6 col-xs-12″> <ul style=”color:#f0ad4e;”> <?php if($portfolio->have_posts()) : while($portfolio->have_posts()) : $portfolio->the_post(); ?> <li><h2><a href=”https://wordpress.stackexchange.com/questions/248440/<?php the_permalink() ?>” target=”_blank”><?php the_title(); ?></a></h2></li> <?php endwhile; endif; wp_reset_query(); ?> </ul> </div> You’re starting the last … Read more

change page name on page list

You can change built in post type labels with the post_type_labels_{$post_type} filter: function wpd_change_page_labels( $labels ) { $labels->menu_name=”Specials”; $labels->name=”Specials”; $labels->singular_name=”Special”; return $labels; } add_filter( ‘post_type_labels_page’, ‘wpd_change_page_labels’ ); EDIT- Refer to register_post_type for a full list of labels, there are probably some others you’ll want to add to this.