likemindsdesigns
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] Change cart to basketI added this to my functions.php file and it seems to be working:
//Function to change Cart to Basket add_filter('gettext', 'translate_text'); add_filter('ngettext', 'translate_text'); function translate_text($translated) { $translated = str_ireplace('Cart', 'Basket', $translated); return $translated; }
Forum: Plugins
In reply to: [WP eCommerce] Change cart to basketJules
Were you able to write a successful function for WP E-commerce to change the text site wide? Would you be willing to post here? Thank you
Forum: Themes and Templates
In reply to: Display Page Excerpt Before WordPress LoopAny body who can help me, I am still having trouble with this. Here’s what I have so far:
<?php // set the $paged variable $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?> <?php if (is_front_page() && !is_paged()) : //If we are on first page // The 1st Query (Loop 1) $query1 = new WP_Query('page_id=95' ); //Show only Post ID 472 // The 1st Loop while ($query1->have_posts()) : $query1->the_post();?> <?php the_content('Read More'); //Show home page content up until read more tag ?> <hr /> <?php endwhile ?> <?php wp_reset_postdata(); // reset post data ?> <?php endif?> <?php //The 2nd Query (Loop 2) $query2 = new WP_Query(array( 'cat' => '2',//Show only the posts in Category 2 or "MCRA News" 'paged' => $paged // use pagination )); // The 2nd Loop if($query2->have_posts()) : while($query2->have_posts()) : $query2->the_post(); ?> <?php the_content('Read More'); ?> <?php endwhile; ?> <?php next_posts_link('Older Posts') ?> <?php previous_posts_link('Newer Posts') ?> <?php else : //There are no more posts in this category?> //I DO NOT WANT THIS HERE, BUT IT IS DISPLAYING A BLANK PAGE WHEN I GET TO THE LAST PAGE. <p>No more news to display.</p> <?php endif; ?> <?php wp_reset_postdata(); // reset post data ?>
WHAT WORKS:
? I am displaying the home page content up to the Read More tag as I intended
? The 2nd query shows posts from the category I wantedWHAT I NEED HELP WITH:
? Pagination: for the 2nd query, it still shows a “Get Previous Posts” link even when there are NO previous posts to show. So it displays a blank page. I worked around this with a lame “No more posts to show message” but I would rather just have it work correctly.Here’s my page:
https://quigleycreativegroup.com/mcra/Any takers? Thank you!
Forum: Plugins
In reply to: [Link Manager] How to display linksHere is how to add the links to a page:
STEP 1: you must create a links.php template page which will call the links. You can use something like this for your theme:
<?php /* Template Name: Links */ ?> <?php get_header(); ?> <?php get_sidebar(); ?> <h1><?php the_title(); ?></h1> <ul><?php wp_list_bookmarks(); ?></ul> <?php get_footer(); ?>
STEP 2: In your admin panel, create a new page called “Links”. Assign that page with the template “Links”
STEP 3: In your admin panel, add the page “Links” to your main menu.
Hope this will help you!
Forum: Plugins
In reply to: [Link Manager] How to display linksI saw the information to add the links to the sidebar. The links are available as a widget.
However, how do we add the links blogroll to our main menu?
Forum: Themes and Templates
In reply to: Display Page Excerpt Before WordPress LoopThis is my home page (set to a blog feed):
https://quigleycreativegroup.com/mcra/
I am using this code before my loop:
$page_id = 95; $page_data = get_page( $page_id ); echo apply_filters('the_content', $page_data->post_content);
There is a <!–more–> tag after the first paragraph. How do I get that long page to cut off at that tag?
Forum: Themes and Templates
In reply to: Display Page Excerpt Before WordPress LoopThank you for your effort. Even with your changes, all I am getting back is the “read more” and no excerpt. Do Pages not allow excerpts (only posts)?
Forum: Themes and Templates
In reply to: Removing categories from post titleTake a look at your index.php page
Do a find for a line of code that is displaying something like this
<?php get_category() ?>
It may be mixed in with some HTML. If you can paste what you find, I will try my best to help.
Forum: Requests and Feedback
In reply to: search forums gives general searchI agree with this. It would be great to be able to search within topics. Thank you WP Team – we know you get so many requests, and we appreciate your hard work.
Forum: Requests and Feedback
In reply to: i think WP Forum is a bit too weak:(I think a helpful features would be to search within a particular topic. As far as I can tell, there is only the overall search. So if I want to search questions about a particular plugin, I manually scroll on that plugin’s list of topics. This can be daunting. Many users will try to not repost existing questions if they can find the question more easily.
Forum: Fixing WordPress
In reply to: Create Two Separate QueriesTo try an clarify, here is a link showing all my custom posts $cals
https://fabmops.org/things-to-do/
Here is a link showing all my regular $args WP posts for category 20 :
https://fabmops.org/category/things-to-do-in-meridian-ms/
I want both these types of posts to live on the same page, but I am lost how to do it. I have tried
$myquery = $cals or $args;
$myquery = $cals and $args;
but neither of those work.
Forum: Plugins
In reply to: [Custom Contact Forms] [Plugin: Custom Contact Forms] Can't create formI think this is an issue related to running WordPress and mySQL on the Windows IIS server.
Have you found another plugin contact form that will work?
Have you tried changing the default email under Custom Contact Forms > General Settings
Forum: Plugins
In reply to: [Custom Contact Forms] [Plugin: Custom Contact Forms] Can't create formAlso, are you able to create fields? I am not able to create either fields OR forms.
Forum: Plugins
In reply to: [Custom Contact Forms] [Plugin: Custom Contact Forms] Can't create formI am having this same problem. I have used this plugin before with no problems; however this particular site is hosted by my client on their own Windows iis server.
Is your site on a self-hosted server too?