Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog


Channel Description:

WordPress › Support

older | 1 | .... | 322 | 323 | (Page 324) | 325 | 326 | .... | 413 | newer

    0 0

    For one wordpress custom theme what i am developing,

    What do i have to do in order to get: <a class="archive_link" href...> instead of: <a href...>

    from the wp_get_archives function for an aside widget?

    In functions.php i have this:

    function sxo_widgets_init() {
        register_sidebar( array(
            'name' => __( 'Primary Widget Area', 'sabercomer' ),
            'id' => 'sidebar-1',
            'before_widget' => '<aside id="%1$s" class="widget %2$s">',
            'after_widget' => '</aside>',
            'before_title' => '<h1 class="widget-title">',
            'after_title' => '</h1>'
        ) );
    }
    add_action( 'widgets_init', 'sxo_widgets_init' );

    And in aside.php template i have:

    ...
    <ul>
        <?php wp_get_archives( array( 'type' => 'monthly') ); ?>
    </ul>
    ...

    Thanks in advance!


    0 0

    Hi Everybody!

    All day long I was looking for an app, which would send email notifications to my subscribers, only when a post through a one certain category is triggered.

    So I found an application called Post Notifier For All. It is really simple and easy to use. I love it!

    The problem is, it sends email notifications to my subscribers whenever I post anything, and not only when I use the specific category.

    So I decided to go into the plugin's editor mode and I found this:

    $post_categories = wp_get_post_categories( $post_ID , array('fields' => 'all'));
            $cats = '';
            foreach ($post_categories as $cat){
            	$cats .= $cat->name.', ';

    It looks to me like it might happen!

    If you think you can help me with this, the category I want to use is called Hot and its ID is 195

    I would be grateful if you manage to help me with my problem!

    Kind Regards,
    Damyan

    [ No bumping please. ]


    0 0

    Hi,

    I have 2 different post categories and for each category I want to show different comment section. For instance, for one category I want to add comment fields like "Age", "Description" fields where as for other post category I want to show "Gender, "Description".

    Is there any way to customize comment section according to post category type?

    Thanks in advance for your reply.


    0 0

    Hi,

    I am trying to create a new field (select-list) to Woocommerce checkout-page so that when user inputs/changes the zipcode-field's value, this new field fetches the available values.

    I have already added the field but I've got no clue which action hook is the one that I should use when zipcode's value is changed so that I could use that value to fetch the list-options (selected zipcode affects to the select'list's rows)?

    I'd appreciate any tips how to proceed with this.


    0 0

    Hi,

    I'm building this site http://kdfsc.com at the moment. I'm kind of new to wordpress.

    The problem I'm having is with the custom css. In order to get the logo centered ( .header_left) and the contact details panel with social icons (.header_top_right_sidebar) at the top of the page inline with the logo I gave the .header_left a {margin: 0 30%;} and the .header_top_right_sidebar a {margin-top:-200px;} which all worked fine, as you will see on the page.

    Now I am trying to make that header responsive by zeroing(or there about) both margins . But for some reason it is not recognizing this change.

    It's contained in a "@media screen and (max-width: 767px)".

    To make sure it was recognizing the media query I put in a "border:3px solid red;" which computes as you will see, but the zeroed margin gives me nothing. Any ideas? Anyone? My head is melted trying to work this out.

    Yours hopefully,

    Conor Mac


    0 0

    About a week ago I started getting 50-75 emails per day for 'Comment Approval". These emails are coming from wordpress@"(my work email)".com. I checked with my email provider and they couldnt see anything on their end. They believe I've been hacked via WordPress. I've updated all my websites passwords & updated the websites updates. How do I stop getting these emails??


    0 0

    So I am trying to configure my breadcrumb trail to page id only, I have an example of a website which I want to mimic but I am finding the breadcrumb trail php too difficult to edit.

    The website I am trying to mimic is: http://fourdrubber.com/

    and the code for my breadcrumbs are as follows.

    if ( ! function_exists( 'presscore_get_breadcrumbs' ) ) :
    
    	/**
    	 * Returns breadcrumbs html
    	 * original script you can find on http://dimox.net
    	 *
    	 * @since 1.0.0
    	 *
    	 * @return string Breadcrumbs html
    	 */
    	function presscore_get_breadcrumbs( $args = array() ) {
    
    		$default_args = array(
    			'text' => array(
    				'home' => _x('Home', 'breadcrumbs', 'the7mk2'),
    				'category' => _x('Category "%s"', 'breadcrumbs', 'the7mk2'),
    				'search' => _x('Results for "%s"', 'breadcrumbs', 'the7mk2'),
    				'tag' => _x('Entries tagged with "%s"', 'breadcrumbs', 'the7mk2'),
    				'author' => _x('Article author %s', 'breadcrumbs', 'the7mk2'),
    				'404' => _x('Error 404', 'breadcrumbs', 'the7mk2')
    			),
    			'showCurrent' => 1,
    			'showOnHome' => 1,
    			'delimiter' => '',
    			'before' => '<li class="current">',
    			'after' => '</li>',
    			'linkBefore' => '<li typeof="v:Breadcrumb">',
    			'linkAfter' => '</li>',
    			'linkAttr' => ' rel="v:url" property="v:title"',
    			'beforeBreadcrumbs' => '',
    			'afterBreadcrumbs' => '',
    			'listAttr' => ' class="breadcrumbs text-normal"'
    		);
    
    		$args = wp_parse_args( $args, $default_args );
    
    		$breadcrumbs_html = apply_filters( 'presscore_get_breadcrumbs-html', '', $args );
    		if ( $breadcrumbs_html ) {
    			return $breadcrumbs_html;
    		}
    
    		extract( array_intersect_key( $args, $default_args ) );
    
    		$link = $linkBefore . '<a' . $linkAttr . ' href="%1$s" title="">%2$s</a>' . $linkAfter;
    
    		$breadcrumbs_html .= '<div class="assistive-text">' . _x('You are here:', 'breeadcrumbs', 'the7mk2') . '</div>';
    
    		$homeLink = home_url() . '/';
    		global $post;
    
    		if (is_home() || is_front_page()) {
    
    			if ($showOnHome == 1) {
    				$breadcrumbs_html .= '<ol' . $listAttr . '><a href="' . $homeLink . '">' . $text['home'] . '</a></ol>';
    			}
    
    		} else {
    
    			$breadcrumbs_html .= '<ol' . $listAttr . ' xmlns:v="http://rdf.data-vocabulary.org/#">' . sprintf($link, $homeLink, $text['home']) . $delimiter;
    
    			if ( is_category() ) {
    
    				$thisCat = get_category(get_query_var('cat'), false);
    
    				if ($thisCat->parent != 0) {
    
    					$cats = get_category_parents($thisCat->parent, TRUE, $delimiter);
    					$cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);
    					$cats = str_replace('</a>', '</a>' . $linkAfter, $cats);
    
    					if(preg_match( '/title="/', $cats ) ===0) {
    						$cats = preg_replace('/title=""/', 'title=""', $cats);
    					}
    
    					$breadcrumbs_html .= $cats;
    				}
    
    				$breadcrumbs_html .= $before . sprintf($text['category'], single_cat_title('', false)) . $after;
    
    			}
    
     elseif ( is_search() ) {
    
    				$breadcrumbs_html .= $before . sprintf($text['search'], get_search_query()) . $after;
    
    			} elseif ( is_day() ) {
    
    				$breadcrumbs_html .= sprintf($link, get_year_link(get_the_time('Y')), get_the_time('Y')) . $delimiter;
    				$breadcrumbs_html .= sprintf($link, get_month_link(get_the_time('Y'),get_the_time('m')), get_the_time('F')) . $delimiter;
    				$breadcrumbs_html .= $before . get_the_time('d') . $after;
    
    			} elseif ( is_month() ) {
    
    				$breadcrumbs_html .= sprintf($link, get_year_link(get_the_time('Y')), get_the_time('Y')) . $delimiter;
    				$breadcrumbs_html .= $before . get_the_time('F') . $after;
    
    			} elseif ( is_year() ) {
    
    				$breadcrumbs_html .= $before . get_the_time('Y') . $after;
    
    			} elseif ( is_single() && !is_attachment() ) {
    				$post_type = get_post_type();
    				if ( $post_type != 'post' ) {
    
    					$post_type_obj = get_post_type_object( $post_type );
    					$slug = $post_type_obj->rewrite;
    					$breadcrumbs_html .= sprintf($link, get_post_type_archive_link( $post_type ), $post_type_obj->labels->singular_name);
    
    					if ($showCurrent == 1) {
    						$breadcrumbs_html .= $delimiter . $before . get_the_title() . $after;
    					}
    				} else {
    
    					$cat = get_the_category(); $cat = $cat[0];
    					$cats = get_category_parents($cat, TRUE, $delimiter);
    
    					if ($showCurrent == 0) {
    						$cats = preg_replace("#^(.+)$delimiter$#", "$1", $cats);
    					}
    
    					$cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);
    					$cats = str_replace('</a>', '</a>' . $linkAfter, $cats);
    
    					$breadcrumbs_html .= $cats;
    
    					if ($showCurrent == 1) {
    						$breadcrumbs_html .= $before . get_the_title() . $after;
    					}
    				}
    
    			} elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) {
    
    				$post_type_obj = get_post_type_object(get_post_type());
    				if ( $post_type_obj ) {
    					$breadcrumbs_html .= $before . $post_type_obj->labels->singular_name . $after;
    				}
    
    			} elseif ( is_attachment() ) {
    
    				if ($showCurrent == 1) {
    					$breadcrumbs_html .= $delimiter . $before . get_the_title() . $after;
    				}
    
    			} elseif ( is_page() && !$post->post_parent ) {
    
    				if ($showCurrent == 1) {
    					$breadcrumbs_html .= $before . get_the_title() . $after;
    				}
    
    			} elseif ( is_page() && $post->post_parent ) {
    
    				$parent_id  = $post->post_parent;
    				$breadcrumbs = array();
    
    				while ($parent_id) {
    					$page = get_page($parent_id);
    					$breadcrumbs[] = sprintf($link, get_permalink($page->ID), get_the_title($page->ID));
    					$parent_id  = $page->post_parent;
    				}
    
    				$breadcrumbs = array_reverse($breadcrumbs);
    
    				for ($i = 0; $i < count($breadcrumbs); $i++) {
    
    					$breadcrumbs_html .= $breadcrumbs[$i];
    
    					if ($i != count($breadcrumbs)-1) {
    						$breadcrumbs_html .= $delimiter;
    					}
    				}
    
    				if ($showCurrent == 1) {
    					$breadcrumbs_html .= $delimiter . $before . get_the_title() . $after;
    				}
    
    			} elseif ( is_tag() ) {
    
    				$breadcrumbs_html .= $before . sprintf($text['tag'], single_tag_title('', false)) . $after;
    
    			} elseif ( is_author() ) {
    
    				global $author;
    				$userdata = get_userdata($author);
    				$breadcrumbs_html .= $before . sprintf($text['author'], $userdata->display_name) . $after;
    
    			} elseif ( is_404() ) {
    
    				$breadcrumbs_html .= $before . $text['404'] . $after;
    			}
    
    			if ( get_query_var('paged') ) {
    
    				$breadcrumbs_html .= $before;
    
    				if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) {
    					$breadcrumbs_html .= ' (';
    				}
    
    				$breadcrumbs_html .= _x('Page', 'bredcrumbs', 'the7mk2') . ' ' . get_query_var('paged');
    
    				if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) {
    					$breadcrumbs_html .= ')';
    				}
    
    				$breadcrumbs_html .= $after;
    
    			}
    
    			$breadcrumbs_html .= '</ol>';
    		}
    
    		return apply_filters( 'presscore_get_breadcrumbs', $beforeBreadcrumbs . $breadcrumbs_html . $afterBreadcrumbs, $args );
    	} // end presscore_get_breadcrumbs()
    
    endif;

    my site is not live and only just in the interim of being built - no content etc,

    but the breadcrumb trail is displaying archives and categories which I just plainly don't want to display.

    Kind regards


    0 0

    I would love to know how to have my header like this...

    http://www.haydenshapes.com/

    - Full bleed slide without menu..
    - Header sticks at top of page after initial scroll.

    I love the way the header lights up on mouse over and the underline too.

    I pretty much want my home page to look like this, but don't know the scripts I will need. Does anybody have some advice?!

    Thanks in advance.


    0 0

    I would like to let admin groups to add some links below every post or page. This might be internal or external content. It's the default Link adding feature from wp-editor which I want to use in the metbobox.

    Therefore user can easily search and link any internal, else directly link any external content below wp-editor.

    Any idea how to do so?


    0 0

    I'm using a free template wordpress and like to know if there is a way to add captcha to a contact page that i've created without using any plugin or editing the template. Like some kind of script that i can just put in.


    0 0

    Hi everyone,

    I am trying to add a slider to one page on my site. I was able to add it to the main page using <?php if ( is_front_page() && function_exists('easingslider') ) { easingslider(2627); } ?> but I don't want to add it to the front page. I want to add it to my news page. Here is the link to the page where I want to add it http://tmmslynn.com/marshall-news/

    Any help would be appreciated.

    Jonathan


    0 0

    Hi,

    I want to set dimensions on two images contained in one of my plugin, Youtube Embed Plus. I've successfully done so in the plugin's .php file where the images are getting called from.

    I'm using the Divi theme from Elegant Themes.

    Here's the original code for one of the images:
    '<div class="epyt-gallery-playhover"><img class="epyt-play-img" src="' . plugins_url('images/playhover.png', __FILE__) . '" /><div class="epyt-gallery-playcrutch"></div></div>' .

    And here's where I've added dimensions to it:
    '<div class="epyt-gallery-playhover"><img width="30px" height="22px" class="epyt-play-img" src="' . plugins_url('images/playhover.png', __FILE__) . '" /><div class="epyt-gallery-playcrutch"></div></div>' .

    I make those changes in the original plugin file, but I'd like to set it up in my child theme. My understanding is that, I can add plugin files into a child theme, but the way I've done it, doesn't appear to work for me.

    The original file is in this path: /wp-content/plugins/youtube-embed-plus/youtube.php
    I set up a copy of the file with the dimensions set for the two images here: /wp-content/themes/divi-child/youtube-embed-plus/youtube.php

    My changes don't seem to be seen by browsers when I set them up in the child theme like that. Can you see why this may not be working, and let me know what I need to change for this to work?

    Thank you!


    0 0

    add_submenu_page allows the $function to be defined as an array, allowing for you to point to a function within a specific class. However, is there a way to do this if it's in ANOTHER plugin?

    Basically, can I add a submenu to my plugin that points to a function within a class of another plugin?

    Thanks.


    0 0

    Hi, I'm creating my first theme from 0...

    I'm creating through my code custom sections, controls and settings in Appearance -> Customize with The Customizer API.

    There is a plugin to make it easier and faster? Or must I write my own code to add item to customize the theme, with theme mods and options?

    I'm confused, Thanks!


    0 0

    I'm using a free template wordpress and like to know if there is a way to add Google Analytic to different pages without using any plugin or editing the template. Like some kind of script that i can just put in.


    0 0

    Hello everyone,

    I think I found a WP-Bug, and i don't know, where to post this, so I put it here.

    Whe you create custom post types and nest one in the other you can't create a new entry without the user capability "edit_post".

    Here is a simple example to reproduce the error:

    function codex_custom_init() {
        $args = array(
            'public' => true,
            'label'  => 'Newsletter',
            'capability_type'	=> 'newsletter',
            'map_meta_cap'		=> true,
        );
        register_post_type( 'newsletter', $args );
    
        $args = array(
            'public' => true,
            'label'  => 'Template',
            'capability_type'	=> 'template',
            'map_meta_cap'		=> true,
            'show_in_menu'		=> 'edit.php?post_type=newsletter',
        );
        register_post_type( 'template', $args );
    }
    add_action( 'init', 'codex_custom_init' );

    You can't create posts, even if you set the capabilities correct. When you document out the 'show in menu' option, everything works fine.

    Regards,
    Jochen


    0 0

    Hello, I would like to add some kind of words with movement in my main page (but it can't be a youtube Video) it has to be like a png pic do you add on the page and you can still see the background but instead of just png it would move a bit.

    My website is http://www.club.datsinnova.com

    And the video on the background is suppoused to stay there but i Want in the front some kind of text that moves like in this video

    https://www.youtube.com/watch?v=wtk5exn-OmY (the words are static but it moves the part on the bottom

    I dont know if you get me. If anyone knwos of any plugin.. it should be like a loop, the text would do alweays the same kind of movement.


    0 0

    I'd greatly appreciate help in learning about the appropriate way to store some custom user meta data. Users are required to enter their information in four columns in the following pipe separated format:

    Wt|Rt|Group|Title
    1|10|2|Name
    2|15|2|Name 1
    3|20|2|Name 2
    4|25|2|Name
    5|30|2|Name 1
    1|11|3|Name
    2|16|3|Name 1
    3|21|3|Name 2
    4|26|3|Name
    5|31|3|Name 1

    I need to be able to retrieve specific lines of information to do calculations. For example, if someone chooses Group 3 with a specific Group and Wt, I should be able to fetch the relevant Rt.

    When I examine stored meta data in WP, some of it seems unreadable and I understand that's because it's serialized. However my data is stored literally as it is entered line by line by the user. Is there any benefit in serialization vs literal insertion of the meta data? (When I use the serialize() function it just chunks the entire batch of data.)

    Could you please give an example of retrieving data in my example for someone choosing Group 3 with a Wt of 2 and fetching the Rt for use in a calculation?

    I'm looking for the steps after get_user_meta( $user->ID, 'my_custom_groups');

    Thanks.


    0 0

    Hello all,

    I have a page setup that is inserting a post on submission. What I need to however do is send the content data to the text tab as HTML but its going through the the Visual tab instead. Is there any way of getting it into the Text tab directly.

    Thank you,
    Lee


    0 0

    I am not a programmer & working on woocommerce website . so its hard for me to explain this in technical terms
    There is pop up (QUICK VIEW) on my shop page , which opens up and show the product details .
    But if you use any product filter like price range ( Product filter ajaxifies the shop page ) , that pop up (QUICK VIEW) doest work after applying any product filter.
    How can i make it work?
    My website - http://cardmart.in/shop/


older | 1 | .... | 322 | 323 | (Page 324) | 325 | 326 | .... | 413 | newer