Lisa Sabin-Wilson
Forum Replies Created
-
All hail merged crap!
So the query pulls:
Posts in Homepage Slideshow
AND
CPT = tribe_events in
Taxonomy – tribe_events_cat with
term = featured-event
?$query = array( 'post_type'=> 'post', 'category_name' => 'Homepage Slideshow', ); array ( 'post_type' => 'tribe_events', 'taxonomy' => 'tribe_events_cat', 'term' => 'featured-event', ); query_posts($query);
?
read the initial post, danggit – my query above doesn’t really do it.
Would something like this do it for you?
$query = array( 'post_type'=> 'post', 'category_name' => 'Homepage Slideshow', ); array ( 'post_type' => 'tribe_events', 'taxonomy' => 'tribe_events_cat', 'category_name' => 'Featured Events' ); query_posts($query);
not sure?
Actually think I don’t need that initial $tax – I think you can ignore that .. its an orphan c/p. ??
This should at least get you started, I think. Forgive my ‘termies’ variable in there – it was late and I was punchy :p
$tax = $taxonomy = strip_tags( get_the_term_list($post->ID, 'POST_TYPE') ); $termies = get_the_terms( $post->id, 'POST_TYPE' ); $terms_slugs = array(); foreach( $termies as $term ) { $terms_slugs[] = $term->slug; // save the slugs in an array } $query = array( 'post_type'=> 'POST_TYPE', 'taxonomy' => 'CUSTOM_TAX_NAME', 'term' => $term->slug, 'category_name' => 'CATEGORY_NAME' ); query_posts( $query );
Or at least close for your purposes? It grabs the term from the postID, gets the term slug then queries: POST_TYPE, TAX, CATEGORY_NAME – yea?
Forum: Fixing WordPress
In reply to: Exclude category on query_post custom taxonomyRize –
You have the right idea, but give this a try:
'cat' => -19;
See if that does it for you.
Forum: Themes and Templates
In reply to: My theme doesn't have the_content()Hi George –
Based on the code you provided, the index.php is making a call to 1, or 2, files that probably contain the tag you’re looking for (the_content)
This line in your index.php:
<?php get_template_part('loop', 'homepage'); ?>
is making a call to include one of two template files within your theme:
– loop.php
– loop-homepage.php (probably handles the display of posts on your homepage)If you have a peek inside your theme folder, you will most likely find either one (or both) of those files, and can make your edits there.
Note: strongly recommend making a backup of all the files in your current theme folder before you attempt making changes…nice to have that backup as a failsafe!
2nd Note: read up on the get_template_part(); tag in the Codex here: https://codex.www.ads-software.com/Function_Reference/get_template_part … introduced in version 3.0, it’s pretty nifty!
Hope that helps!
Forum: Themes and Templates
In reply to: Comment link missing?Since your code was moderated above, I cannot see your exact structure, so here is an example from a template I have:
<?php the_time(get_option('date_format')); ?>
<?php the_author_posts_link(); ?>
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
That lists, in order: the date | the author | comments
The comments_popup_link needs to be placed within the loop, which is probably why you are seeing it listed for the first post, but not on subsequent posts.
If you want to edit the text that shows for your comment links, you would edit the text within the comments_popup_link parenthesis – example:
<?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?>
That will display if:
There are no comments yet: “Leave a Comment”
There is only one comment: “1 Comment”
There are several (like 10): “10 Comments”Hope that helps.
Forum: Themes and Templates
In reply to: Comment link missing?Based on that output – look in the template file called loop.php or loop-default.php (or both) and copy and then paste the line of code that I gave you in my previous response into the template at the location you would like it to display on your site.
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
PS – when posting code in the forums – put the code between backticks so they are formatted correctly ??
Forum: Themes and Templates
In reply to: Comment link missing?Sounds like the link is not included in the index.php of your theme?
Open your index.php template file for the Raindrops theme and look for this line of code (or something very similar):
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
If you don’t see it, add it wherever you’d like the comments link to appear on your site.
That message generally shows up when the folder already exists in your directory structure — WordPress attempts to create the folder during plugin installation, but if it finds a folder already there by the same name, the installation will fail and give you the message you are seeing: “Destination folder already exists” This sometimes happens because of a previously failed plugin installation.
Have a look at your directory on your web server – use FTP or if you have CPanel, use the File Manager and navigate to /wp-content/plugins/
If you see a folder named: /page-links-to/ delete it, then attempt re-installation via the Plugins page in your Dashboard.
Forum: Fixing WordPress
In reply to: Can't get into admin siteTypically, the login URL for your WordPress Dashboard is:
https://YOURDOMAIN.com/wp-login.phpOR, if your WordPress is installed in a subdirectory:
https://YOURDOMAIN.com/DIRECTORY/wp-login.phpWhere:
YOURDOMAIN = your site domain
DIRECTORY = the name of the directory WordPress is installed inThis should bring you to the login screen where you can enter your username and password to login to your Dashboard.
Once there, bookmark the link in your browser so you have easy access to it and don’t have to rely on the Site Admin link in order to get there.
Hope this helps.
Forum: Installing WordPress
In reply to: FTP access to WP install using bluehostBlue Host has CPanel access where you can create FTP logins – – be sure when you create an FTP user account that you are designating folder permissions as /public_html/ … not /public_html/usernmame/
If that still doesn’t work for you, I would recommend eliciting the help of the support techs at Blue Host.
Cheers,
Forum: Themes and Templates
In reply to: Installed a new theme and now I get an error messageWhat version of WordPress are you running?
is_multi_author() is new as of version 3.2 – if you aren’t running 3.2, upgrade your WordPress installation to the latest version.
Forum: Installing WordPress
In reply to: Dashboard lostSounds like some kind of issue with theme, maybe. Try manually de-activating the theme by logging into your web server via FTP and rename the Evolve theme folder. This will automatically de-activate the theme on your site – – and if the problem is the theme, you should then be able to login to your Dashboard by going to https://yourdomain.com/wp-admin
If not, then you have a larger problem and may need to do a clean install of the latest version of WordPress.
Best of luck!