Show similar category portfolio items?

Here’s what I would do: I would create a new WP_Query instance, using a Taxonomy parameter as follows: $wp_query = new WP_Query([ ‘post_type’ => ‘<custom_post_type>’, ‘<taxonomy_slug>’ => ‘<term_slug>’, ‘fields’ => ‘ids’, // We just need the post IDs // Add other query parameters as needed ]); More on using Taxonomy parameters in a WP_Query instance … Read more

How to install wordpress theme’s plug-ins?

It sounds like you are trying to upload archive files to the plugin directory. You can’t do that. You need to upload the original source files. Unzip or unrar the plugins (s)FTP the decompressed files to wp-content/plugins Activate the plugins from the backend control panel That should be all you need to do. Some of … Read more

Does Google detect files in the WordPress plugin directory

It will, but why not go further and add a robots.txt? # Google Image User-agent: Googlebot-Image Disallow: Allow: /* # Google AdSense User-agent: Mediapartners-Google Disallow: # digg mirror User-agent: duggmirror Disallow: / # global User-agent: * Disallow: /cgi-bin/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/cache/ Disallow: /wp-content/themes/ Disallow: /trackback/ Disallow: /feed/ Disallow: /comments/ Disallow: … Read more

Showpost and last

Try this : $the_query = new WP_Query( array( ‘post_type’ => ‘ad’, ‘posts_per_page’ => 10, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘ad_category’, ‘field’ => ‘id’, ‘terms’ => array(‘8’) ) ) )); posts_per_page tells how many items you want to retrieve from DB orderby tells to order items by date (optional … Read more

How to tell which Plugin is displaying?

It can be less than trivial to match output to a source code responsible in WordPress. The typical cases are following: The output is produced by template file directly. The locating template responsible is often about just searching for full or partial text match. From the other side template files can be identified among all … Read more