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


Showcase


Channel Catalog


Channel Description:

WordPress › Support

older | 1 | .... | 343 | 344 | (Page 345) | 346 | 347 | .... | 413 | newer

    0 0

    Following situation:
    - Custom Post Type created
    - Made it sortable

    Now, when opening the post list (edit.php?post-type=my_type) I want to change the order value in the sortable columns. By default it is set to "asc". See example.

    Is it possible to change the init sort order for those links?


    0 0

    Hello everyone, i've made a Unity3d game, mainly for Android users. I've a function that save a screenshot along with other data, encode to json, send to the server and store everything in a table. Now i'd like to implement an integration with wordpress: my data will be auto-posted to the game's site via a plugin. I'm pretty new to wp, so i'm asking an opinion about the way i want to do this.
    1) everything but the upload is happening serverside, and any connection with the user is closed as long as the server receives the json.
    2) the users are stored in a table independent from wp, they will not need to register the site (for now).
    3) an array for wp_insert_post is prepared with my data.
    4) ..opinion needed here.. i have to login with a user made just for posting so:
    a)call wp-login.php (or i need something else?) and pass credentials, if i correctly interpreted the documentation this will trigger a redirect so the blog will load.
    b) i call a add_action to my auto post function and hook that to wp_init.php (or is too early?)
    c) attach the media to my newly created post. (The screenshot must be stored inside wp_content/uploads directory?).
    All that can work?


    0 0

    Hi Guys, I am a newbie for this forum, But I need to hack my own website to do someting. Now I own 1 website and need to e-Commerce, So I using woocommerce as our main plug in. Otherwise I need to move category description from the top to the buttom, How can I do that ?

    http://www.trendingfocus.com/product-category/bag/


    0 0

    Hello :)

    Ive been looking around for a while now after a plugin that makes it so when a person register to the website, and fill out 2 or 3 lines in the register fields

    Character Name:
    Server:

    So when the person fill out all the fields the plugin will pull the profile picture from the battle.net auth and use it for the person who just registered

    I know that the battle.net auth is capable of doing this, but no idea if its possible with wordpress / buddypress and everything?

    Can only guess that alot of ppl running a world of warcraft guild site with wordpress would love this.

    Id obv be willing to pay to get this done unless it gets to expensive


    0 0

    Not having much luck with Woo or Gravity, so thought I'd try here:

    I am using the Gravity Forms Product Add-ons plugin for WooCommerce. Woo confirms that the Admin Notification email isn't a feature when the form is used on a product:

    "Gravity Forms Add-Ons does not send email notifications when they are assigned to a product." (see FAQs: http://docs.woothemes.com/document/woocommerce-gravity-forms-product-addons/)

    While I understand that it seems redundant given the form fields are all included in the WooCommerce email confirmations, the form I'm adding to my products is quite comprehensive and I'd prefer to keep all that messy extra data separate to the WooCommerce order transaction by having the usual Gravity Forms Admin Notification send via email also (I plan to remove the add-on fields from the WooCommerce emails).

    Can anyone give me guidance on how to get the usual Gravity Forms Admin Notification email to send even when the form is assigned to a product, please?

    Many thanks.


    0 0

    hello,

    i use the_category(' » ', 'multiple'); for custom breadcrumbs on single.php it works very well for posts which are only in one category or in different main categorys.

    but when i have a post for example in childcat1 + childcat2 both childcats of the same maincat.

    the_category then returns the links to maincat + childcat1 + maincat + childcat2

    is there a way to return the maincat link only one time?

    so i just need a filter or something to filter duplicate links for the_category


    0 0

    it's posible open post in a popup fullscreen with javascript or plugin?


    0 0

    I have a wordpress website with post2post plugin.

    My Posts db table has an additional column 'Coll01' where I store a small string.

    In the adminnistration side when I add a new article on the right column there are two boxes of Post2Post plugin. There I connect the "new artcle" with old articles. To find the old articles I have to enter part of their Title and Post2Post search and displays the titles of the articles that match the search string.

    My question is, how to make Post2Post instead of searching the titles of the articles, to search in the column 'Coll01' and return as results the titles.

    Thank you


    0 0

    Hi there, I hope someone can help. I'm totally stumped.

    My search results currently go to the url "mysite.com/search/?s=searchterm" but no search results are displayed. When I manually change the url to "mysite.com/search/searchterm" (remove the ?s=) the search results ARE displayed.

    So, what I would like to accomplish is to remove "?s=" from the URL.

    I added this code to my functions.php file but nothing changed.

    function search_url_rewrite(){
            if(is_search() && !empty($_GET['s'])){
                    wp_redirect(home_url("/search/"). urlencode(get_query_var('s')));
                    exit();
            }
    }
    add_action('template_redirect', 'search_url_rewrite');

    My searchform.php has the line:
    <form method="get" action="<?php echo home_url('/search/'); ?>" class="wt_search_form" role="search">

    To complicate further, the home page is redirected to an Unbounce landing page so redirecting from the home url "mysite.com" won't work.

    Can anyone make a suggestion about removing "?s=" from the search URL?

    Thanks so much in advance


    0 0

    I have 3 different custom post types in my website (created with Types plugin), lets say they are, school, teacher and exercise. The following link works as supposed:
    http://www.mysite.com/school/school-name/
    The problem comes here:
    School should be parent of teacher, and teacher be parent of lesson.
    When I set this, I get this permalink:
    http://www.mysite.com/teacher/school-name/teacher_name/

    First of all, I don't know if this path has real sense...
    Shouldn't it be something like this? (Maybe not, not really sure what makes more sense):
    http://www.mysite.com/school/school-name/teacher/teacher-name

    The problem is that it leads me to a 404 ERROR.
    Has somebody stumble with a similar problem?
    I have read about 404 in custom post types, but this is not exactly the case as a simple custom post type link works, the problem arises with the nested ones.


    0 0

    I'm using the Custom Post Type UI plugin and created a taxonomy for the Events post type already built in the Lindeza Pro theme since I want to be able to categorize each Event under the Class taxonomy. I created a taxonomy-class.php to hopefully show the posts of ONLY that category/taxonomy but it shows ALL of the Events (aka Classes) posts. I believe it's because of the theme's custom loop used to pull from Events:

    <?php
    $lindeza_get_list_events = lindeza_get_list_events(-1);
    while ( $lindeza_get_list_events->have_posts() ) {
    $lindeza_get_list_events->the_post();
    ?>

    Could anyone direct me on what I need to edit below to get it working? Or a better way to give Events categories other than the method I did? Below is the full code of taxonomy-class.php:

    <?php
    /**
     * The template for displaying all classes.
     *
     Template Name: Classes
     * @package Lindeza
     */
     get_header(); ?>
      	  <header>
    		<div class="page-title">
    		   <div class="wrapper">
    			    <?php if(function_exists('bcn_display')) { ?>
    				<div class="breadcrumbs">
    						<?php	bcn_display(); ?>
    				</div>
    				<?php } ?>
    			   <h2><?php printf( __( 'Classes: %s', 'lindeza' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h2>
    			</div>
    	    </div>
    	 </header>
        <div class="mainContainer events-page">
            <div class="content">
                <div class="wrapper">
                    <div class="content-events">
                        <div class="events-posts">
    						<?php
    							$lindeza_get_list_events = lindeza_get_list_events(-1);
    							while ( $lindeza_get_list_events->have_posts() ) {
    							$lindeza_get_list_events->the_post();
    							?>
    							<?php get_template_part( 'partials/content', 'events' ); ?>
    						<?php }  wp_reset_query(); ?>
                            <div class="pagination">
    			               <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
                            </div>
                        </div>
                        <?php  get_sidebar(); ?>
                    </div>
                </div>
            </div>
        </div>
    <?php get_footer(); ?>

    It can be seen in action at http://rebeccalowe.physio/rebecca-lowe/classes/ and in the right sidebar are the class categories (which changes to the default blog sidebar after click through - but I need it to stay as the custom Classes sidebar).


    0 0

    I am using the theme with website and blogs,

    When I create blank page the unwanted files will be coming with the file.
    And when i create the new blank page i can not edit nav bar for the page to make some nav content as active container.

    And there is no active container when I click on the particular blogs. The active container will only be present for the home of the blog if some blog links are clicked to show the full blog the container for the nav content blog will be disappeared.

    Tried with multiple themes still no use and I can not edit nav content because its coming from the function which i can not find the function body in any of the php pages.


    0 0

    Hey all,

    I am looking for a script that will run on a hourly basis that will switch all posts in draft status to publish status. I know how to do this with a sql script to update the database, but that does not fully act like clicking the "Publish" button would do. So many of the script/hooks/etc are not fully run and thus any plugin that ties into those hooks are not run.

    Anyone have an idea on how to do this?

    Thanks in advance!


    0 0

    So I am running into some issues here with auto publishing. I am mimic the process that accure once the Publish button is pressed with an SQL script.

    A bit of backstory:
    I have a site that it is feed posts from feedly. By default these posts are put into draft mode. Using the following script, I have figured out a way to change the post from draft to publish.
    UPDATE DB_Name.wp_posts SET post_status = replace(post_status, 'draft', 'publish'), post_name=id where post_status = 'draft';

    This works great and does switch from draft to publish and does assign a slug. However, when a post comes from feedly, it does not create a featured image. To do this, I have installed a plugin (Quick Featured Images Pro). The plugin basically scans the post and uses the first image it sees as the featured image.

    Here is the catch. The plugin only works if you the feedly post is set to draft first and then you manually login and click publish. Thus, my script only makes the chagnes in the database, but does not fully do what I need.

    So my question would be, does anyone know how to script (php or sql) the process of pushing the publish botton? Or better yet, how to run the plugin script after my script above is run?

    Thanks in advance.


    0 0

    Hi all,

    I'am currently trying to figure out where the WP_session_tokens are saved. I could not find any information out here whether they are stored in the memory or the file-system or the database or even something completely else.
    And once you found them can you change where they are stored?

    Any help would be greatly appreciated.

    -Tobias


    0 0

    I have two page templates (prose, poetry), and each one has a css file associated.
    I realised that if I create a new page with a specific page template the associated css file works only after I either publish the content or save it as a draft.
    Is there a way to have the visual editor style set before I start writing?
    I know I can always write the title, save it as a draft and by then the style is loaded into the visual editor.

    Thank in advance.


    0 0

    I have a very normal loop inside my index.php I am using for my home page. I also have <?php query_posts( 'order=asc' ); ?> above this loop... like so,

    <?php query_posts( 'order=asc' ); ?>
    <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>

    Now whenever I try to click on page 2 it keeps me on page 1Any ay to fix this so I don't need to change my loop code.


    0 0

    Hi,

    I'm currently coding an event plugin and want to display the events. However, when I get them to display, it shows all the events in the order of when they were created and, even past events.
    What I want is to be able to order the posts so that the next event is first and so that no events which have passed are shown.
    My issue is that the date is stored in a meta_key called 'WooCommerceEventsDate' as '12 February 2016' for example.

    Following a tutorial from another forum article, I came up with this but it doesn't show anything.

    $args = array(
    	'post_type' => 'product',
    	'posts_per_page' => 1,
    	'post_status' => 'publish',
    	'meta_key'=>'WooCommerceEventsDate',
    	'orderby' => 'meta_value_num',
    	'order' => 'DESC',
    	'meta_query' => array(
    		array(
    			'value'         => date('j F Y',strtotime("today")),
    			'compare'       => '>=',
    			'type'          => 'DATE'
    		)
    	)
    );

    Anyone got any ideas?


    0 0

    Hi guys, I have been looking for a complex search box like,

    http://www.stevegolding.com/job_search.php

    Anyone know where I could get something like that but true WordPress?

    Thanks,


    0 0

    I am trying to write my first plugin.

    So I read some tutorials and figured I'd start with a simple plugin to make sure I understood everything I read. I just wanted to echo "Hello World" on the screen. Simple.

    I created the plugin and saw it in my admin. I activated it. So far, so good. Then... nothing happens. My code is extremely simple. I'm sure someone will look at it and see the problem.

    I did some more research online and I tried to echo the message several ways:

    <?php
    
    /*
    Plugin Name: Hello
    */
    
    function hello_world() {
     echo "Hello!";
      print("Hello World");
    }
    
    add_action('wp_print_scripts', 'hello_world');
    
    add_action('get_header', 'hello_world');
    
    add_action('get_footer', 'hello_world');
    
    add_action('wp_header', 'hello_world');
    
    add_action('wp_footer', 'hello_world');
    
    ?>

older | 1 | .... | 343 | 344 | (Page 345) | 346 | 347 | .... | 413 | newer