Hi there
i was developing a plugin and want to know how i can add menus to users (non-admins) dashboard at the left side. can you please help?
thanks
Hi there
i was developing a plugin and want to know how i can add menus to users (non-admins) dashboard at the left side. can you please help?
thanks
Hi,
I have found on a google search that on my website there are some links that point to home page that has been a week older.The links are generated somehow:
The links are not in database
The links are not in the code
http://www.romania-insider.com/cosmic-perspective-6th-edition-2aef5-pdf-42efd
WP version 4.1
Please help.
Thank you.
Looking for an extension close to my needs, which are:
- create, edit, delete,
- and then: list, search, sort,
items.
Items are similar to db listing. I.e. several preconfigured categories.
Something like:
* first name
* last name
* email address
* experience
* referrer
The fields above will need validation before saving, which ... in turn will be defined in the back office
That are the basics. I would also like, for users to be able to add comments to existing listed items
I can program. I could build this fully from scratch. I don't want, I want to find something ready that is close enough. I'm just saying that if I need to adjust it a little be, I have the knowledge how to do it
Thanks!
Let me know
Hi , i want to secure my wordpress blog against brute forcing with the use of xmlrpc.php file , is there any way to do that , also if i just delete the file , is the blog will work normal or not ?
Hello, i´ve been using WP for a while, but this is my first support entry.
I´m trying to accomplish a search by list with multiple search results in one page. Like searching for a grocery list. Each searched item should return let´s say 10 results max.
Didn´t find a plugin that makes the job, so if you have any pointers will really help.
For example: Search input should be a text area like this
Search:
Coke
Cereals
Milk
Bread
Results Page:
Coke:
10 results for coke
Cereals:
10 results for Cereals
Milk:
10 results for Milk
Bread:
10 result for Bread
Thanks!!
I am very new to WP and learning as I go. A few months ago, we spotted hidden embedded links on our homepage from Google Webmaster tools, and they were linked to online casino sites. I've installed a few securty plugins, but they seem to come back clean. Here are the following subpages i've found linked to my site:
/online-roulette
/online-casino-real-money
/online-casino-usa
/best-online-casino
/online-casino-australia
I thought it was embedded in one of the plugins so I started deactivating plugins. The first one I deactivated was the All in One SEO plugin and those sites came back with a 404. So I deleted the plugin and I checked those spammy sites this morning and they're back on. How do I get rid of these from my webpage for good? They're hurting our rankings!
Hello, can anyone see a problem this issue?
yesterday I spotted injected links on our web site in any pages on the top.
skutki uboczne tabletek Kamagra
http://www.buthonestlywhatdoiknow.com/skutki-uboczne-tabletek-Kamagra/
I check some of the files and I didn't find any code injected. I will be really thankful if someone can help me.
Thanks.
hey guys, I need a little help with my registration form.
i got this code:
<p class="form-row form-row-first">
<label style="float: right;" for="reg_username"><?php _e('שם', 'yit'); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="reg_username" value="<?php if (isset($_POST['username'])) echo esc_attr($_POST['username']); ?>" />
</p>
this is for usernames but when someone try to register he can only put letters in english and not in hebrew. how can I fix it so pepole can register with hebrew name?
when you put name in hebrew you get an error like theres nothing there at all.
thanks alot!
Once upon a time I saw this is possible on another blog, even comments. Is there a code snippet to add the character count ability that's on the post to ALL the textboxes and textareas rendered in the blog (even by plugins)?
I have various native WP areas AND plugins that I wish I could know the character count and not have to have a character counter open in another window going back and forth. I keep googling it but I find different things for excerpt or a single plugin but looking for an overall solution.
I used to guestblog somewhere that had this in thier blog. The blog is down and I'm out of touch with the author. But I remember I used to click in any textarea or textbox and the little div would show the #character count
I have a get_posts loop that can be on posts and pages. In both cases the the_title function of the single loop items shows the title of the post or page the loop is on.
Here is an (simplified) example (index.php):
<?php get_header(); ?>
<?php if( have_posts() ): while( have_posts() ): the_post(); $postID = get_the_ID(); ?>
<?php $args = array( 'cat'=>1234 ); $myposts = get_posts( $args ); if( !empty( $myposts ) ): foreach( $myposts as $post ) : setup_postdata( $post ); ?>
<?php var_dump( $post ); the_title(); ?>
<?php endforeach; else: endif; wp_reset_postdata(); ?>
<?php endwhile; endif; ?>
<?php get_footer(); ?>
The var_dump function shows on each element the correct post information but the title_function shows wrongly the parent elements title.
I absolutely dont know what is wrong Oo. Sorry about my english.
Hello,
What I want to do is extend how you can order a custom post type while extending the URL to show that order. For example: I want to order my example post type "projects" to sort randomly and I would like the URL to be:
example.com/projects/singe-post
example.com/projects/random/
My idea was to create a custom taxonomy called "projects/random" with all of the template files,(archive-projects.php, single-projects.php, taxonomy-project-categories.php, taxonomy-project-categories-random.php), and then use the same rewrite slug for the taxonomy and the custom post type. Then I used the pre _get_posts action to change the query in taxonomy-project-categories-random.php to order the projects post type randomly.
This had a few undesirable effects such as: I would then have to make every post in projects apart of the random taxonomy category because I couldn't change the query in the pre_get_post function I created to get all of the projects posts in a random order without making it setting it in the category in wp-admin.
My question is now, was I going about in the right way trying to use a taxonomy to order posts differently while maintaining a hierarchical URL, or is there a different way that I'm suppose to do this?
I've been trying to google how to do this, or find examples of this, but sadly I don't know the right terms to get the proper search results. I welcome any tutorials, advice, or just giving me the technical term, if there is one, of what I'm trying to do to help with searching for the correct answer.
Thank you for your help!
Hi, i have some trouble with a plugn and thumbnails. To add a image within a shortcode of a plugin is working fine example: https://on.gnetwork.eu/Zc.jpg
But if i now add a caption to the thumbnail, this is not working. I see a code instead of the label
Image: https://on.gnetwork.eu/bd.jpg
I had read a bit abut Plugins and read that i have to register the WP Caption Shortcode within the Plugin. Is that right? Or other question how to i use the WP Caption within a Plugin shortcode?
Sincerly yours
Deexgnome
Is there not a way to search posts to see if there's already information on a topic before starting a new string?
I am looking for anyone that can give me some insight into the .php code needed to add a single read more link at the bottom of a widget that will take the user to a list of posts in a given category.
If anyone is willing to share this information, I will be most grateful.
Hello, I have two-three instances of a category dropdown but only the first instance on the page works. The other two drop down but don't connect to the selected category page.
The first instance, I hard-coded into the page.php template (rather than trying to figure out how to add a widget to a template - I got lost attempting this). The other two instances are widgets. Even if I remove the code from the template, only one of the widgetized dropdowns links to the category page.
I have no idea how to register two or more of them. I tried using the code provided on this page: https://wordpress.org/support/topic/multiple-instances-of-wp-dropdpwn_categories-not-working-any-advice?replies=10
but it put 3 instances of the dropdown in the theme file only and the two other dropdowns drop down but don't link to the category pages.
Here's the page i'm working on.
Thanks for any help!
my site has been hacked and now I can't access it
I have tried resetting my password but it keeps telling me I have the wrong password
I tried asking for extra help to restore my site and that didn't work either
can anyone advise me what to do please
Hi, how I can use custom-field or taxonomy to display different header.
I dit it with taxonomy using the taxonomy-archive but since I dont use taxnomy-archive anymore I cannot make it happen.
Here my logic, if the page display the custom-field 'people' slug 'joe' or 'jeff' the header should change.
if ( is_singular( 'joe' )) {
//
get_header('header-for-joe');
}
elseif ( is_singular( 'jeff' )) {
//
get_header('header-for-jeff');
}
else {
//
get_header('header-for-everyone-else');
}
?>
Not working :(
Any hint, suggestion ?
Thanks.
Hi,
I'm developing a plugin with the goal of making it easy to create additional content based on taxonomies on a blog. So, for instance, say a food blog has tags like apples
and bananas
. These would ordinarily create tag archive pages like example.com/tag/apples
and example.com/tag/bananas
, etc.
What I'd like to do is create a permalink structure such that a URL like example.com/tag/apples/info
produces a page about the apples tag. This page would be a custom post type.
I'm already aware of add_rewrite_endpoint()
(I used that feature in this BitTorrent plugin), but what I'm trying to do is more complex.
Using the following combination of Rewrite API calls, I've successfully managed to get URLs like example.com/tag/apples/info
to load to the correct page, however, WordPress redirects these pages to their custom post type canonical permalinks, which is like example.com/custom-post-type/apples
, and that's not what I want.
The code I have right now looks something like this (simplified for length):
add_rewrite_tag('%custom-post-type%', '(custom-post-type)s', 'post_type='); add_permastruct('custom_post_type', 'tag/%tag%/info'); add_rewrite_rule('^tag/([^/]+)/info/?', 'index.php?post_type=custom-post-type&pagename=$matches[1]', 'top'); $args = array('rewrite' => array('with_front' => false)); register_post_type(str_replace('_', '-', $this->prefix) . 'page', $args); flush_rewrite_rules();
Again, this gets URLs like example.com/tag/apples/info
to redirect to example.com/custom-post-type/apples
, so WordPress is able to find the correct post. But the behavior I want is no redirect.
I tried returning false
from the redirect_canonical
filter, too, but this just resulted in a 404.
What am I not doing that I need to be doing to get the behavior I want? Also, as a followup question, how can I adjust my code so that a custom tag or category permalink base (other than the default of tag
or category
) will also be rewritten correctly for my custom post type?
Thanks in advance for your help. :)
Hi
For my blog http://www.missmodern.be I want to automatically add the article category and article title on top of the image in the slider.
So it will read, for example:
INTERIOR
5 BEAUTIFUL WOOD DESIGNS
Something like the first 2 lines on this picture: https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10931314_10205018791823206_8091655092177847595_n.jpg?oh=391698339dbf33090f2154a5ab8be4cd&oe=55213D9B&__gda__=1429302669_2210ae8b0339534fab91d391ebde4dd9
This is the css code I've found for the slider:
#slideshow_cont { width: 980px; height: 410px; position: relative; margin-bottom: 30px; }
.slide_box { display: none; position: absolute; top: 0; left: 0; }
.slide_box_first { display: block; }
.slide_box img, .slide_box iframe { width: 980px; height: 410px; }
.slide_prev, .slide_next { position: absolute; top: 50%; margin-top: -20px; z-index: 50; cursor: pointer; }
.slide_prev { left: 0; }
.slide_next { right: 0; }
Which alterations should I make to it?
Thanks in advance!
Ine
Hi,
I have a website with classes and events registration and I am currently hosting on godaddy using their wordpress hosting package with automatic page caching. However it is causing problems on my checkout pages. Godaddy solution would be to switch hosting but before I do that I would like to know if there is a hack or plug in to exclude checkout pages from caching.
Thank you
I am trying to create a plugin for my theme to use a custom post type "carousel-images" and the shortcode [carousel] to create a carousel of featured images.
Currently the first image shows up with the Bootstrap Carousel navigation and prev/next icons, but the carousel will not scroll or show any additional images. There are 3 posts with featured images for the carousel.
here is my plugin.php
<?php
/*
Plugin Name: WP_BS_Carousel
Description: Bootstrap Carousel Custom Post-Type
Author: Jaycbrf4
Version: 1.0
/*/
function wp_bs_theme_setup() {
add_theme_support( 'post-thumbnails' );
add_image_size( 'wp_bs_carousel_image', 1170, 385, true);
}
add_action( 'after_setup_theme', 'wp_bs_theme_setup' );
// Creates Carousel Image Custom Post Type
add_action( 'init', 'register_wp_bs_carousel_image' );
function register_wp_bs_carousel_image() {
$labels = array(
'name' => _x( 'Carousel Images', 'carousel_image' ),
'singular_name' => _x( 'Carousel Image', 'carousel_image' ),
'add_new' => _x( 'Add New', 'carousel_image' ),
'add_new_item' => _x( 'Add New Carousel Image', 'carousel_image' ),
'edit_item' => _x( 'Edit Carousel Image', 'carousel_image' ),
'new_item' => _x( 'New Carousel Image', 'carousel_image' ),
'view_item' => _x( 'View Carousel Image', 'carousel_image' ),
'search_items' => _x( 'Search Carousel Images', 'carousel_image' ),
'not_found' => _x( 'No carousel images found', 'carousel_image' ),
'not_found_in_trash' => _x( 'No carousel images found in Trash', 'carousel_image' ),
'parent_item_colon' => _x( 'Parent Carousel Image:', 'carousel_image' ),
'menu_name' => _x( 'Carousel Images', 'carousel_image' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'description' => 'Images for Bootsrap Carousel',
'supports' => array( 'title', 'editor', 'thumbnail','excerpt' ),
'taxonomies' => array( 'category' ),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-images-alt',
'show_in_nav_menus' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'has_archive' => true,
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'post'
);
register_post_type( 'carousel-image', $args );
}
function wp_bs_carousel($atts) {
// Set Shortcode Attributes
extract(shortcode_atts(array(
'posts' => 1,
), $atts));
// Start the Return String
$return_string = '<div id="wp_bs_carousel" class="carousel slide carousel-fade" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators" >
<li data-target="#wp_bs_carousel" data-slide-to="0" class="active"></li>
<li data-target="#wp_bs_carousel" data-slide-to="1"></li>
<li data-target="#wp_bs_carousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" >';
// The query
$the_query = new WP_Query(array(
'post_type' => 'carousel-image',
'posts_per_page' => 1
));
// The loop
while ( $the_query->have_posts() ) :
$the_query->the_post();
$return_string .= '<div class="item active">'.get_the_post_thumbnail($post->ID,'wp_bs_carousel_image').'<div class="carousel-caption">
<h1>'.get_the_title().'</h1>
<p>'.get_the_excerpt().'</p>
</div>
</div><!-- item active -->';
endwhile;
wp_reset_postdata();
$the_query = new WP_Query(array(
'post-type' => 'carousel-image',
'posts_per_page' => $posts,
'offset' => 1
));
while ( $the_query->have_posts() ) :
$the_query->the_post();
$return_string .= '<div class="item">'.the_post_thumbnail('wp_bs_carousel_image').'<div class="carousel-caption">
<h1>'.the_title().'</h1>
<p>'.the_excerpt().'</p>
</div>
</div><!-- item -->';
endwhile;
wp_reset_postdata();
// Finish the Return String and Clean Up
$return_string .= '</div>
<!-- Controls -->
<a class="left carousel-control" href="#wp_bs_carousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#wp_bs_carousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>';
return $return_string;
}
add_shortcode('carousel', 'wp_bs_carousel');
?>