epicdevspace
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Trouble finding Code to change video on site.Hi
You can try looking at your Homepage in your wp-admin Dashboard -> Pages , perhaps switch to text view once you’re on the page to see if you can find that iframe.
Other than this piece of advice , it is very difficult to pinpoint the problem from just peeking at the frontend.
All the best!
Forum: Fixing WordPress
In reply to: start hourHi
The problem you’re experiencing is described too vaguely.
I need a link to your site / a description of your current setup.
Forum: Fixing WordPress
In reply to: Short link errorsHi
You can try creating two new posts with the original content and deleting the existing problematic posts.
I will have a look at your site in a little while to see if I can help with any other suggestions ??
Forum: Hacks
In reply to: Shortcode to display categories the post is listed under on the current postHi Katrah
Add a class to the output and code some custom css to override the default placement. ??
Forum: Hacks
In reply to: Shortcode to display categories the post is listed under on the current postHi
Just a thought, it might also be worth while to try to change the function name and shortcode name to something more unique as part of your bug fixing ??
Forum: Hacks
In reply to: Shortcode to display categories the post is listed under on the current postHi
The code I provided works well with on the twenty fifteen theme and a handful of others I tested.
Perhaps you can contact support for the Genesis framework and ask them to point you in the right direction?
Forum: Hacks
In reply to: Shortcode to display categories the post is listed under on the current postHi
Important note: Backup your site and use child themes instead of modifying the parent theme’s code ??
Now that I’ve got that out of the way , here’s a solution:
Add this to your functions.php
function get_cats(){ $categories = get_the_category(); $separator = ' '; $output = ''; if ( ! empty( $categories ) ) { foreach( $categories as $category ) { $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator; } echo trim( $output, $separator ); }} add_shortcode('getcats', 'get_cats');
Then use
[getcats]
in your posts to display a list of categories the post is affiliated to.All the best & happy coding!
Forum: Fixing WordPress
In reply to: Subdomain Site Not WorkingHi Allison
I do not think you need a multi-site for this purpose as you are likely creating a client live testing WordPress site. ??
You will need to install WordPress (new db recommended) in the subdomain’s folder (which can be seen in the public_html folder). It is always a good idea to keep these testing sites as separate entities to reduce the risk of db corruption. You will be able to easily export sql and source code when the site is production ready.
All the best.
Forum: Fixing WordPress
In reply to: Can't cut off new comments for a post and still show old commentsHi
What theme are you using?
Forum: Fixing WordPress
In reply to: Home page breaks when I attempt to editHi
What theme are you using?
Forum: Fixing WordPress
In reply to: Short link errorsNeed more information about those two pages (double check their permalinks) if the above code doesn’t help a bit.
Forum: Fixing WordPress
In reply to: Short link errorsHi
Try this:
<?php echo wp_get_shortlink(get_the_ID()); ?>
Forum: Fixing WordPress
In reply to: Removing visible code from a single postHi
It’s hard to pinpoint the cause without looking at the other associated files.
You can try reverting to the original code and applying
style="display:none;"
to the <h3> and the <img> to see if that helps restore the site.Also ensure that you haven’t overwritten the site’s index.php file (in the WordPress root dir) by mistake.
Let me know how it goes ??
Forum: Fixing WordPress
In reply to: start hourHi
What plugin are you using ?
Forum: Fixing WordPress
In reply to: How to take a home section and get a widgetHi
Go through your the code in the homepage’s template file.
You can then create a simple custom plugin and paste that section over. It might require a bit of editing to ensure that the file structure to retrieve css etc. remains intact.
Then create a shortcode. You can then call this on all your pages and posts.
Pros
A standalone plugin is easier to manageCons
Requires an update when your theme undergoes a major update