custom-wordpress-pages

my taxonomy-$taxonomy.php page post not show?

こ雲淡風輕ζ 提交于 2019-12-25 07:34:38
问题 I created a custom post taxonomy.Now i want to show all specific post by specific taxonomy. so I created a taxonomy-product_cat.php page. here is product page get term and link code-- <div class="side_box side_box_1 red5"> <h5><a href="#" class="tgl_btn">Filter Products</a></h5> <h6>Brand</h6> <?php $topics = get_terms('product_cat'); echo '<ul class="advanced-filters tgl_c">'; foreach ($topics as $topic) { echo '<li class="advanced-filter" data-group="Brand"><a href="'.get_term_link($topic).

Adobe Brackets Live Preview w/ PHP not working (localhost is)

独自空忆成欢 提交于 2019-12-25 02:46:41
问题 I'm trying to edit my custom Wordpress theme, but whenever I specify the path to the localhost server, Brackets returns 'To launch preview with a server-side file, you need to specify a Base URL for this project.' On my Mac, my Wordpress theme is in this directory: Users/myname/Desktop/www.scabrackets.dev/wp-content/themes/customTheme When I go to set my Base Host URL on Brackets, I've tried literally every combination of the address above, as well as adding "/index.php" and other page names

Wordpress Custom Search by post_type

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:12:14
问题 I've tried a couple of methods but I cannot seem to filter custom post_types from my search results and was hoping someone could help. I have installed "Job Manager" and created 4 jobs which have a custom post_type = 'jobman_job' I tried to create a manual search form and set a hidden value of post_type = jobman_job but it still returned all posts. <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <input type="text" name="s" id="s" value=""/> <input

Woocommerce Product Default Description for All Products

怎甘沉沦 提交于 2019-12-24 21:39:58
问题 Is this possible to add Woocommerce Product Default Description for All Products page. That should be image or Note text. And I want It will be put in above or bottom of the description text. Thanks in advance 回答1: you can use hooks like // define the woocommerce_single_product_summary callback function function my_custom_action() { echo '<p>This is my custom action function</p>'; }; add_action( 'woocommerce_single_product_summary', 'my_custom_action', 15 ); or woocommerce_after_single

Custom Plugin - Posting data from main page to another page within your plugin

孤街醉人 提交于 2019-12-24 20:38:40
问题 I created a new custom plugin, that adds a new admin menu to show a list of events. When you click any given event, I want to send you to another page in my plugin that will then render information about this event. I can keep it simple and just use a query string parameter, so don't need to do a form POST, but I would be interested in that as well. There are two pages: /my-plugin/reservation-management.php /my-plugin/reservation-management-details.php My setup in the base page (reservation

FacetWP - how to put custom order by

半城伤御伤魂 提交于 2019-12-24 18:28:04
问题 I create custom fields using Pods Admin and FacetWP do show and filter on page. but I need to change "order by" to custom field called "volta-rapida-tempo". Like this: <?php return array( "post_type" => "volta_rapida", "post_status" => "publish", "orderby" => "volta-rapida-tempo", "order" => "ASC", "posts_per_page" => 10 ); How can I do this correctly? Thanks 回答1: You need to make 2 changes first change orderby with meta_value and add meta_key Please check below code for the same. <?php

How to force ShiftNav to Lock in place the Header (Logo) on menu-open

早过忘川 提交于 2019-12-24 16:42:33
问题 I am trying to make the ShiftNav menu plugin to apply Lock Scroll - aka lock_body in source code - on a new theme, which should make the-shifted-to-the right-by-the-opened-menu-content locked on y-scroll - obviously, (tested on previous theme). This option will work if the Shift Body will be enabled, which I did. In these conditions the Lock Scroll it doesn't work. I've tried to fix the header and other elements in position using position: fixed !important; but as soon as the left menu will

How to force ShiftNav to Lock in place the Header (Logo) on menu-open

纵然是瞬间 提交于 2019-12-24 16:42:26
问题 I am trying to make the ShiftNav menu plugin to apply Lock Scroll - aka lock_body in source code - on a new theme, which should make the-shifted-to-the right-by-the-opened-menu-content locked on y-scroll - obviously, (tested on previous theme). This option will work if the Shift Body will be enabled, which I did. In these conditions the Lock Scroll it doesn't work. I've tried to fix the header and other elements in position using position: fixed !important; but as soon as the left menu will

Is it possible to host wordpress database from other server

烈酒焚心 提交于 2019-12-21 20:18:31
问题 I've a problem is that I've to host wordpress database from other server and directory from another server where my domain links, so is it possible to connect wordpress directory from other database which is not on same server, kindly resolve my issue if know the answer. Thanks in advance. 回答1: Yes, as long as the MySQL server allows the database to be accessed by external servers. When you set up WP, instead of "localhost", you'll put in the SQL server. you can export the current database,

Why pagination is not working and gives a 404 error on the wordpress site?

孤街醉人 提交于 2019-12-18 09:04:21
问题 Good day! The problem is this: in the template category(the archive) the pagination is not working, when you click on page 2 of the 404 error. Please help do not understand how to solve it, already all head broke My loop: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $arg = array( 'cat' => get_queried_object_id(), 'post_type'=>'post', 'posts_per_page'=>9, //'order'=>'desc', 'paged' => $paged, ); $query = new WP_query($arg); if($query->have_posts()) : ?> <section