sixfootjames
Forum Replies Created
-
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Redirect to specific thank you pagesAny answers on this?
Super, thanks Chad. That worked but I wonder if in a later update, it would be possible to hide all posts by default as an option?
In the case of P2, this has become our internal communication channel where we discuss client projects so I would want to hide even the client project names.
Take a look at this post for example.
https://mamchenkov.net/wordpress/2012/10/11/wordpress-p2-company-intranet-in-5-minutes/And this post by Matt https://ma.tt/2015/09/complementing-slack/
Many thanks.
Forum: Fixing WordPress
In reply to: Better way to add WP menusWell, let me not say large. It is a big menu but there are repetitive items like the example of the “management” items in that screenshot which makes it hard to find the right management menu item to add to its parent page especially because they are not indented to make it visibly noticeable.
Thank you!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Tablepress menu not showing upHi Tobias,
This issue has come up on many threads and it is not a solution in your frequently asked questions section. I have now plugged in Members and checked for any roles that might have been disassociated from the plugin but I don’t even see the roles for
Tried the following:
- Change theme to 2011 – no joy
- Deactivate all plugins – no joy
- Install Members, check roles – no joy
Is there something else I am meant to be checking? I don’t know what else might have changed the roles, other than this new theme I am using.
Have a look at this: https://screencast.com/t/eH75PvcEuv
Many thanks
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] TinyMCE WYSIWG conflictThanks Ben…will try that and email you directly.
I do wish that WordPress forums would allow for a redirect to developer’s pages if they do no manage requests from this platform. ??Forum: Hacks
In reply to: AND and OR query in WordPress wpdbThanks bcworkz, for the lengthy explanation, much appreciated! I will give your instructions a bash now and see how it goes.
Forum: Hacks
In reply to: AND and OR query in WordPress wpdbThanks bcworkz. I will give that a shot.
Perhaps it is the logic that I cannot seem to wrap my head around and the fact that I have not used WP_Query much like this, but will this ensure that if I select one dropdown and search or both dropdowns, it will do the query across both selected options?Do I not need both AND and OR to do the comparison?
Forum: Hacks
In reply to: AND and OR query in WordPress wpdbHi bcworkz, thanks for getting back to me. Here is a snippet of what I have.
<?php //the_content(); if ($_GET["productType"] || $_GET["productGroup"] || $_GET["productCountry"]) { $productType = $_GET["productType"]; $productGroup = $_GET["productGroup"]; $productCountry = $_GET["productCountry"]; } else { $productType = ' '; $productGroup = ' '; } $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', 'relation'=>'AND', 'meta_query' => array( array( 'key' => 'product_type', 'value' => $productType, 'compare' => 'LIKE' ), array( 'key' => 'crop_group', 'value' => $productGroup, 'compare' => 'LIKE' ), array( 'key' => 'country', 'value' => $productCountry, 'compare' => 'LIKE' ) ) ); ?> <form name="x" action="" method="GET" class="search-results-form" > <div> <select name="solutionCountry" class="search-product-type"> <option value="South Africa">South Africa</option> <option value="Angola">Angola</option> <option value="Botswana">Botswana</option> <option value="Malawi">Malawi</option> <option value="Mozambique">Mozambique</option> <option value="Namibia">Namibia</option> <option value="Zambia">Zambia</option> <option value="Zimbabwe">Zimbabwe</option> </select> </div> or <div> <select name="solutionType" class="search-product-type"> <option value="Product1">Product 1</option> <option value="Product2">Product 2</option> <option value="Product3">Product 3</option> <option value="Product4">Product 4</option> <option value="Product5">Product 5</option> </select> </div> or <div> <select name="solutionGroup" class="search-product-group"> <option value="Group1">Group1</option> <option value="Group2">Group2</option> <option value="Group3">Group3</option> <option value="Group4">Group4</option> <option value="Group5">Group5</option> </select> </div> <input type="submit" value="SEARCH" class="submit-button btn" /> </form> <?php // return the results $loop = new WP_Query( $args ); ?> <ul> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <li> <strong><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a> - <?php the_field('solution_type'); ?></strong><br> <?php the_field('solution_description'); ?><br><br> </li> <?php endwhile; ?> <?php wp_reset_query(); ?> </ul> <?php } ?>
If it is possible to use WP_Query with AND and OR, I’d appreciate some help.
This is not the ideal solution by I eventually dropped all the wp_wf… tables and exported it again which has now worked. Messy, very messy as I don’t know enough to see what other dependencies there might be but it’s worked for now and I can continue on again with work. I would still like to hear a better solution to this…if for anything to help other people who come across this.
Here is a comparison between the two tables
I have run table repairs on all the tables but this has not solved the issue either.
Next, I’ve duplicated the working online DB. Duplicated the site, logged in and deleted Wordfence in the hope that it deletes the tables for Wordfence too but this has not worked either.
I’m now at a loss as to what to do next? Any thoughts? This is keeping me from working on the project which I need to get done.
Thanks
Forum: Plugins
In reply to: GatherContent.com clone pluginI’ve set up a web server using a Raspberry PI on my own internal network. Open the ports and the client gets a NO-IP URL where they can directly access the CMS and database and start uploading content to the database that will be used by the time the site goes live.
That way they learn how to use WP CMS and at the same time add content to the site so that everything is done by the time I am finished developing.
Forum: Plugins
In reply to: GatherContent.com clone pluginThanks Mathew, I am however looking for a simpler option where clients can add content directly to the site as we’re working in collaboration so that they learn how to use the CMS at the same time.
I think I may have found something. Testing it at the moment.
Forum: Reviews
In reply to: [FlowBoard] Let it grow!Have a look at this.
https://scrumtrainingseries.com/That script works BRILLIANTLY!
So, if you ever do find that you’re losing settings when you move a DB from Localhost to Live environment, then run that script from interconnectit…Follow the Smashing Magazine instructions and you should be good. ??